-
Bug
-
Resolution: Fixed
-
Low
-
2.10.3, 3.0, 3.1, 3.2, 3.2.1
-
None
Steps to reproduce
- First attach an image to a new Confluence page
- Next, create the following markup in the page:
!spaceKey:PageTitle^ImageName.gif|width="606"!
- The image will be displayed as usual
- However, when you edit the page again and do some roundtrips (Wiki-markup -> Rich Text editor), the Wiki Markup becomes:
!spaceKey:PageTitle^ImageName.gif|width=606"606"!
- More round-trips causes more duplicate values for the width parameter:
!spaceKey:PageTitle^ImageName.gif|width=606"606""606""606"!
- At this point, you are still allowed to edit and save the page.
- However, when there's a page title change, you are not allowed to save the page anymore. You will get an Oops page with the following error:
org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified. at org.apache.xerces.dom.CoreDocumentImpl.createAttribute(Unknown Source)
- Screenshots:
RenamingPage.png
AfterRenamingRichText.png
AfterSaving.png
- Screenshots:
- You are also not allowed to switch to Wiki Markup editor to fix the markup.
CantAccessWikiMarkup.png
Workaround
- Don't use the quotes for the value. For example:
!spaceKey:PageTitle^ImageName.gif|width=606!
- is related to
-
CONFSERVER-6992 Markup umbrella issue - errors switching between modes or rendering escaped content
- Closed
-
CONFSERVER-13434 Image size settings are corrupted on round tripping
- Closed