Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
4.0, 4.1, 4.2, 5.1, 5.1.5, 5.3, 6.2, 6.1, 6.5.0, 7.4.3
-
15
-
Severity 2 - Major
-
4
-
Description
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.
An attempt to enter a URL such as this:
http://www.testconf.com?xml=<type="Request">test</type>
Will result in an XML error such as the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>500</status-code><message>com.atlassian.confluence.content.render.xhtml.XhtmlParsingException: The XML content could not be parsed. There is a problem at line 1, column 735. Parser message: Unexpected character &#39;=&#39; (code 61) excepted space, or &#39;&gt;&#39; or &quot;/&gt;&quot;
 at [row,col {unknown-source}]: [1,735]</message></status>
This becomes a problem during upgrade, especially if customers had such links in previous versions of Confluence.
Workaround
Manually convert special characters in the URL based on this mapping: http://www.w3schools.com/tags/ref_urlencode.asp
The URL above will be encoded to this:
http://www.testconf.com?xml=%3Ctype%3D%22Request%22%3Etest%3C/type%3E
Attempting to workaround this by entering the link through Insert >> Wiki Markup results in a Wiki Markup conversion error with the same stack trace as above. In some cases, the page will not be saved at all until the link is fixed.
Attachments
Issue Links
- is duplicated by
-
CONFSERVER-31415 Special Characters Entered into Link Macro Causes Link to be Converted to Text
- Closed
- relates to
-
CONFCLOUD-28393 Links are not recognized as a link if the URL is not properly pre-encoded
- Closed