Pages containing a line break in the title won't load when visited via encoded URL

XMLWordPrintable

    • 2
    • Severity 3 - Minor

      Issue Summary

      If a page title contains a line break, the line break in the URL will be encoded to %0A (for example, in notification emails).

      When visiting the page via that encoded URL, Chrome returns a "This site.atlassian.net page can’t be found" error (Firefox just doesn't load anything)

      This looks similar to a previously closed bug: CONFCLOUD-73509 – Line feed/New line on the page title breaks the page history links

      Steps to Reproduce

      1. Using any text editor (but Confluence) create a title spanning two lines
      2. Using Atlassian Account A: Create a new Confluence page and copy the two lines into the title
      3. Publish the page (side note, the published version actually shows the content on 1 line)
      4. Watch the page
      5. Using Atlassian Account B: leave a comment on the page
      6. Wait for the comment email notification to arrive in the Account A's email
      7. Click the title of the page in the notification email (notice the URL contains %0A)
      8. Notice the page won't load
      9. Remove everything from the URL starting from (and including) %0A
      10. Notice the page will load

      Expected Results

      Page loads fine, regardless if there's a line break in the title

      Actual Results

      When visiting the page via that encoded URL, Chrome returns a "This site.atlassian.net page can’t be found" error

      Workaround

      • Remove the line break from the page title
      • If the link already contains the line break, remove any parts of the URL following and including %0A

              Assignee:
              Yulduz Sciarrillo
              Reporter:
              Dorian Davis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: