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

Round-trips after entering image markup with width parameter (with quoted value) along with a page rename causes INVALID_CHARACTER_ERR error

      Steps to reproduce
      1. First attach an image to a new Confluence page
      2. Next, create the following markup in the page:
        !spaceKey:PageTitle^ImageName.gif|width="606"!
        

        Screenshot

      3. The image will be displayed as usual
      4. 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"!
        

        Screenshot

      5. More round-trips causes more duplicate values for the width parameter:
        !spaceKey:PageTitle^ImageName.gif|width=606"606""606""606"!
        
      6. At this point, you are still allowed to edit and save the page.
      7. 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) 
        
      8. You are also not allowed to switch to Wiki Markup editor to fix the markup.
        CantAccessWikiMarkup.png
      Workaround
      1. Don't use the quotes for the value. For example:
        !spaceKey:PageTitle^ImageName.gif|width=606!
        

        1. AfterRenamingRichText.png
          112 kB
          Sashidaran Jayaraman [Atlassian]
        2. AfterRoundTrip.png
          125 kB
          Sashidaran Jayaraman [Atlassian]
        3. AfterSaving.png
          149 kB
          Sashidaran Jayaraman [Atlassian]
        4. CantAccessWikiMarkup.png
          114 kB
          Sashidaran Jayaraman [Atlassian]
        5. RenamingPage.png
          121 kB
          Sashidaran Jayaraman [Atlassian]
        6. WikiMarkup.png
          69 kB
          Sashidaran Jayaraman [Atlassian]

            [CONFSERVER-19917] Round-trips after entering image markup with width parameter (with quoted value) along with a page rename causes INVALID_CHARACTER_ERR error

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2900281 ] New: CONFSERVER Bug Workflow v4 [ 2994954 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2795291 ] New: JAC Bug Workflow v3 [ 2900281 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2725408 ] New: JAC Bug Workflow v2 [ 2795291 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2389008 ] New: JAC Bug Workflow [ 2725408 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2266206 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2389008 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2209872 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2266206 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2195358 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2209872 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1934008 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2195358 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1733629 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1934008 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1684764 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1733629 ]

              smansour Sherif Mansour
              sjayaraman Sashidaran Jayaraman [Atlassian]
              Affected customers:
              3 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: