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

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

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fsim Foo Sim (Inactive)
              Votes:
              14 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: