Details
-
Bug
-
Resolution: Timed out
-
Medium
-
None
-
5.6.6, 5.7.1, 5.9.4, 6.0.5
-
3
-
Severity 2 - Major
-
0
-
Description
If an image from a different page is displayed in a page, and the page where the image is attached contains an apostrophe in the page title, upon taking a XML backup and restoring it, the image macro will display a Unknown Attachment error.
This is caused because the apostrophe in the page title in the macro parameters has changed to:
’
Repro steps:
- Create a personal space.
- Default home page is created with the title: User Name’s Home
- Attach an image to the home page.
- Create a new page in another space.
- In the new page, insert the image from User Name’s Home. The generated XHTML is:
<ri:attachment ri:filename="filename.png"><ri:page ri:content-title="User Name's Home" ri:space-key="~username" /></ri:attachment></ac:image>
- Take a XML backup
- Restore the XML backup
- Go to the page created in step #4. Unknown Attachment is displayed instead of the image. The cause is that the apostrophe in the page name in the image macro parameter has been change to ’ and the page cannot be found. The XHTML for the page is:
<ri:attachment ri:filename="filename.png"><ri:page ri:content-title="User Name’s Home" ri:space-key="~username" /></ri:attachment></ac:image>
This could also affect other macros and other characters which are reserved XML characters.
Attachments
Issue Links
- mentioned in
-
Page Loading...