HTML Text changes when copied into Code Block

XMLWordPrintable

    • 3
    • Severity 3 - Minor
    • 0

      Issue Summary

      HTML Text changes when copied into Code Block

      Steps to Reproduce

      • Create a page
      • Go to and click on other macro
      • Insert code block macro
      • Enter the text as follows:
        <Connector port="8081" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
        connectionTimeout="20000" maxThreads="48" minSpareThreads="10"
        enableLookups="false" acceptCount="10" URIEncoding="UTF-8" />
        
      • It changes into following:
        <Connector port="8081" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"
        connectionTimeout="20000" maxThreads="48" minSpareThreads="10"
        enableLookups="false" acceptCount="10" URIEncoding="UTF-8" />
        

        The relaxedQueryChars are wrong.

      Expected Results

      The text should not change in Code Block Macro

      Actual Results

      The text is changing as soon as you paste it in the Code Block macro

      Note

      This issue starts happening from Confluence 6.14.0 and not observed in Confluence 6.13.10, likely due to the Editor Improvement that comes with Confluence 7.14.0.

      Confluence Version Pasting HTML Entiries Worked?
      Confluence 6.13.10
      Confluence 6.14.0
      Confluence 7.10.1

      This issue is also related to CONFSERVER-66374 (for HTML macro)

      Workaround

      Using <Markup>
      • Click on on the page where you want to add the code.
      • Click on <Markup>
      • Enter the text as shown in the screenshot attached for your reference, i.e. by adding the text content under code braces.
      • Click on insert and you would see the characters showing up as expected.

            Assignee:
            Unassigned
            Reporter:
            Nivedita Singh (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: