Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-25671

Page Link with Multi-byte character can't auto update

    XMLWordPrintable

Details

    Description

      Symptoms

      As Described on this bug report:

      In version 4.0 and above, Confluence should be able to auto update page links when the linked page has been renamed. However this is not working when the title of the page contains any multi-byte characters such as Japanese or Chinese.

      Cause

      This appears to be caused at the time the link is saved. If you save a link to a page called "First Page" in English, it looks like this in storage format:

      <ac:link><ri:page ri:content-title="First Page" /></ac:link>

      However if you save a page called "最初のページ" in Japanese, then it looks like this:

      <ac:link><ri:page ri:content-title="最初のページ" /><ac:plain-text-link-body><![CDATA[最初のページ]]></ac:plain-text-link-body></ac:link>

      The key difference is that there is an "ac:plain-text-link-body" section inserted, meaning that the link text has been overridden from the page name. The auto updater is only changing the "ri:page" element, specifically the "ri:content-title" attribute.

      Steps to Reproduce

      1. Create a page called 最初のページ
      2. Create another page, and add a link to 最初のページ
      3. Rename the page 最初のページ to 二つ目のページ
      4. Reload the page with the link, and observe that the old page name remains

      Workaround

      To get around the issue when creating a new page:

      1. Create the page named with Roman characters only
      2. Create a link to that page
      3. Rename the page to have multi-byte characters
      4. The link should be updated normally from then on, as long as the link isn't edited again

      To make a link to an existing page:

      1. Rename the page to a title with Roman characters only
      2. Create a link to that page
      3. Rename it back to the old title

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              scahyadiputra Septa Cahyadiputra (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: