Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
5.6.1, 5.7.1, 5.9.7
-
13
-
Severity 2 - Major
-
5
-
Description
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? 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
- Create a page using page properties macro with label test-mention
- 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"
- Create a page using page properties report macro
- Edit the page properties report macro to use label "test-mention" and display the field "user"
- 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
- is duplicated by
-
CONFSERVER-36715 Page Properties Report Macro cannot Render Ampersand character in conjunction with mentions or date macro '//'
- Closed
- relates to
-
CONFCLOUD-37081 Page Property Report Displays "Error: The XML content could not be parsed" for & character following an @mention or // date macro
- Closed