Links are not recognized as a link if the URL is not properly pre-encoded

XMLWordPrintable

    • 15
    • Severity 2 - Major
    • 4

      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 &amp;#39;=&amp;#39; (code 61) excepted space, or &amp;#39;&amp;gt;&amp;#39; or &amp;quot;/&amp;gt;&amp;quot;&#xD;
       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.

            Assignee:
            Unassigned
            Reporter:
            Foo Sim (Inactive)
            Votes:
            17 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated: