-
Bug
-
Resolution: Fixed
-
High
-
6.0.5, 6.1.0, 6.1.1, 6.2.1, 6.2.3, 6.4.0, 6.4.1
-
40
-
Severity 2 - Major
-
328
-
Summary
When you edit a page that contains attachments that are displayed as a link, those links will point to the page itself and the name of the link will also change to the name of the page.
Steps to replicate
- Create a new page called 'Test'.
- Use the Confluence Source Editor add-on to insert this storage format into the page:
<p> <ac:structured-macro ac:macro-id="fa94f7f6-7974-42a4-a8b7-752c0f3e27a8" ac:name="toc" ac:schema-version="1"/> </p> <h3>Documentation</h3> <p> <ac:link> <ri:attachment ri:filename="File 1.docx"/> </ac:link> </p> <h3>Schedule</h3> <p> <ac:link> <ri:attachment ri:filename="File 2.xlsx"/> </ac:link> </p> <h3>Attachments</h3> <table class="wrapped"> <colgroup> <col/> <col/> </colgroup> <tbody> <tr> <th> </th> <th> </th> </tr> <tr> <td>Questions</td> <td> <div class="content-wrapper"> <p> <ac:link> <ri:attachment ri:filename="File 3.xlsx"/> </ac:link> </p> <p> <ac:link> <ri:attachment ri:filename="File 4.docx"/> </ac:link> </p> </div> </td> </tr> <tr> <td>Answers</td> <td> <div class="content-wrapper"> <p> <ac:link> <ri:attachment ri:filename="File 5.xlsx"/> </ac:link> </p> </div> </td> </tr> </tbody> </table> <p class="auto-cursor-target"> <br/> </p>
- Save the page.
- Confirm that the links are named as File 1 to File 5.
- Edit the page.
- Click on 'Preview' or save the page.
Expected results
The link names should remain as File 1, File 2, File 3, etc.
Actual results
The link names are all changed to the page title, 'Test'.
Note
Looking at the storage format, the edit results in this link:
<ac:link><ri:attachment ri:filename="File 5.xlsx" /></ac:link>
To change to this:
<ac:link />
We've also seen it change to reference the page ID in stead of the attachment, like this:
<ac:link><ri:content-entity ri:content-id=“PAGE ID" /></ac:link>
Resolution
Confluence 6.6.3 (LTS) and Confluence 6.7.2 and above have a fix for this issue. Upgrading Confluence is the recommended resolution. However, the fix only prevents new occurrences of page corruption from occurring and does not fix pages that have already been corrupted by the bug. Existing pages will still have to be fixed manually.
- is caused by
-
CONFSERVER-52060 Images, attachments, user mentions are broken after changing the BaseURL
- Closed
- is duplicated by
-
CONFSERVER-53275 All links on a page get replaced by a self-referencing link
- Closed
- is related to
-
CONFSERVER-51690 An anchor link's name changes after editing the page with Collaborative Editing switched on or set to limited
- Closed
-
CONFSERVER-46039 Links can't be edited or clicked on after saving the page
- Closed
-
CONFSERVER-46227 Shortcut links become empty after editing the page with Collaborative Editing turned on
- Closed
- relates to
-
CONFSERVER-52449 mailto links doesn't work correctly when the email starts with a special character.
- Closed
-
CONFSERVER-54898 Pages using attachments from other pages are having their storage format broken after the attachment's page is deleted
- Gathering Impact
-
SSE-304 Loading...
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...