Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-72573

Using '&' character causes WstxLazyException error in Page Properties Report macro

    XMLWordPrintable

Details

    Description

      Issue Summary

      '&' character in the 'Page Property' macro is causing issues in 'Page Properties Report' macro in Legacy Editor.
      We see the below error in 'Page Properties Report' macro for the value where we had the '&' character.

      Error: [com.ctc.wstx.exc.WstxLazyException] Unexpected character ' ' (code 32) (missing name?) at [row,col{unknown-source}]: [1,483]

       

      Steps to Reproduce

      Note: We are able to replicate the issue was when we use a new line shortcut (shift + enter - windows)(shift + return - mac) in the column value and the '&' character comes after this new line shortcut on the page property macro. If we use Enter/Return key instead of the new line shortcut, then the issue is not replicated.

      • Use 'Page Property' macro and in one of the columns have give a '&' character after the new line shortcut as explained above.
      • Use 'Page Properties Report' macro in another page using legacy editor and fetch this row value having '&' character.

      Expected Results

      '&' character should display as expected.

      Actual Results

      We see the below error:

      Error: [com.ctc.wstx.exc.WstxLazyException] Unexpected character ' ' (code 32) (missing name?) at [row,col{unknown-source}]: [1,483]

      The below exception is seen in splunk logs:

      com.ctc.wstx.exc.WstxLazyException: [com.ctc.wstx.exc.WstxLazyException] Unexpected character ' ' (code 32) (missing name?) at [row,col]: [1,483] com.ctc.wstx.exc.WstxLazyException.throwLazily(WstxLazyException.java:45) com.ctc.wstx.evt.FilteredEventReader.hasNext(FilteredEventReader.java:72) 
      Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ' ' (code 32) (missing name?) at [row,col{unknown-source}]: [1,483]
      

      Workaround

      • Convert the page to new editor. This issue is not replicated in new editor.
      • Use Enter/Return key for new line instead of the new line shortcut (shift + enter - windows)(shift + return - mac)
      • Use 'And' instead of '&'

      Attachments

        Activity

          People

            Unassigned Unassigned
            13f27f9b2775 Jagriti
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: