Special characters in page titles breaks excerpt macro

XMLWordPrintable

    • 10
    • Severity 3 - Minor
    • 1

      Problem

      • Scenario 1
        If a page title contains a special character such as a colon(":") and is referenced in an excerpt include macro and the page is moved within the hierarchy or to a different space the macro breaks when the page is updated and shows the following error:

        Error rendering macro 'excerpt-include'

        No link could be created for '<page name>'.

      • Scenario 2
        This also happens when a page title is edited and a special character(colon ":") is added. When the page with the excerpt include macro is updated the macro breaks with the same error as above.

      Environment

      • Confluence 7.4.0
      • Confluence 7.5.1

      Steps to Reproduce

      • Scenario 1
        1. Create a page with an excerpt macro adding random text and a page title as follows: "Testing: Phase 1"(note the colon)
        2. Create a page with an include excerpt macro and reference the page created in step 1 to display the excerpt
        3. Move the page created in step 1 to a different place in the hierarchy or space
        4. Edit the page created in step 2 and without making any changes just update the page
      • Scenario 2
        1. Create a page with an excerpt macro adding random text and a page title as follows: "Testing Phase 1"
        2. Create a page with an include excerpt macro and reference the page created in step 1 to display the excerpt
        3. Edit the page created in step one and change the title to "Testing: Phase 1"(note the colon that was added)
        4. Edit the page created in step 2 and without making any changes just update the page

      Expected Results

      The link to the "excerpt macro" should be correctly updated and the data within displayed without an error.

      Actual Results

      • The following error is displayed once the page is updated in both scenarios:

        Error rendering macro 'excerpt-include'

        No link could be created for '<page name>'.

      Workaround

      • Do not use any special characters in page titles containing include macros
      • Manually fix the reference in the excerpt include macro if it breaks

      Notes

      • Scenario 1
        • The link is prefixed by the space key and once the page is moved the space key is removed.

            Assignee:
            Unassigned
            Reporter:
            Ferdinand van Zyl (Inactive)
            Votes:
            10 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: