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

Page Property Report Displays "Error: The XML content could not be parsed" for & character following an @mention or // date macro

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.

      When a page properties macro includes an @mention or date macro, then this will be included in the page properties report. However, if the @mention or date macro is then followed or preceded by an & symbol, the page properties report does not display these as expected.

      Instead, there is a displayed error:

      Error: The XML content could not be parsed. There is a problem at line 1, column 869. Parser message: Unexpected character ' ' (code 32) (missing name?) at [row,col {unknown-source}]: [1,869]
      

      ...and 480 lines of exception logging (see attached) that starts:

      2015-03-30 11:29:00,482 ERROR [http-bio-8090-exec-122] [content.render.xhtml.DefaultRenderer] render Error rendering content for view: The XML content could not be parsed. There is a problem at line 1, column 868. Parser message: Unexpected character ' ' (code 32) (missing name?)
       at [row,col {unknown-source}]: [1,868]
       -- referer: http://confluence.foo.bar.com/dashboard.action | url: /display/XXX/Report+Page | userName: userx | action: viewpage | page: 19993228
      com.atlassian.confluence.content.render.xhtml.XhtmlParsingException: The XML content could not be parsed. There is a problem at line 1, column 868. Parser message: Unexpected character ' ' (code 32) (missing name?)
       at [row,col {unknown-source}]: [1,868]
      	at com.atlassian.confluence.content.render.xhtml.StaxUtils.convertToXhtmlException(StaxUtils.java:473)
      	at com.atlassian.confluence.content.render.xhtml.storage.StorageXhtmlTransformer.transform(StorageXhtmlTransformer.java:50)
      	at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:41)
      	at com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:51)
      

      To Replicate

      1. Create a page using page properties macro with label test-mention
      2. Within the page properties macro, have a field "user" with content that is an @mention for "userx" (or a date macro), followed by text "& team"
      3. Create a page using page properties report macro
      4. Edit the page properties report macro to use label "test-mention" and display the field "user"
      5. The resulting report displays column "user" with error "Error: The XML content could not be parsed."

      Expected behaviour

      Instead of the error, expect: "@userx & team" or date macro & team

      Note

      Not sure if this is a problem with Confluence base rendering, with @mentions, or is specific to the macros tested.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              2f113cc8540a Mark Symons
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: