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

Links and web images with URLs containing certain non-alphanumeric characters fail to save

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Symptoms

      Any time a URL contains a character that is invalid as per the URI RFC, or one of a small set of valid characters ("*", "[", "]", "'", " ' "), the link will fail to save correctly. The link will appear on the page, but not clickable. The anchor tag is empty and the URL is not saved into the BODYCONTENT table.

      Similar behavior occurs when inserting an image from the web with an URL containing an invalid character. While the image renders in edit mode, upon saving the page there will be a red "Broken Image" placeholder.

      Steps to reproduce:

      • Click Link > Web Link tab
      • Insert an URL with an invalid character. For example: http://www.google.com/* (this is a bogus URL)
      • Click Insert
      • Save page

      Workaround:

      Use an encoded entity in the format "%<hexit><hexit>" (reference) in place of the invalid character when injecting the URL.

      OR a simpler way would be:

      1. Go to Google Shortner at https://goo.gl/
      2. Paste the URL
      3. Google will generate a short url for your URL which you will be able to link.
      4. Google will also be change your long URL to alphanumeric characters, which can also be saved.

            [CONFSERVER-24320] Links and web images with URLs containing certain non-alphanumeric characters fail to save

            Charles Meireles made changes -
            Link New: This issue relates to JRACLOUD-71366 [ JRACLOUD-71366 ]
            Charles Meireles made changes -
            Link New: This issue relates to JRACLOUD-71365 [ JRACLOUD-71365 ]
            Robert Chang made changes -
            Link New: This issue is related to CONFSERVER-24753 [ CONFSERVER-24753 ]
            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2897724 ] New: CONFSERVER Bug Workflow v4 [ 2992005 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2789902 ] New: JAC Bug Workflow v3 [ 2897724 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2736247 ] New: JAC Bug Workflow v2 [ 2789902 ]
            Owen made changes -
            Symptom Severity Original: Major [ 14431 ] New: Severity 2 - Major [ 15831 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2380364 ] New: JAC Bug Workflow [ 2736247 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2264417 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2380364 ]
            Michael Andreacchio made changes -
            UIS Original: 31

              jgiacoppo Jade Giacoppo (Inactive)
              rchang Robert Chang
              Affected customers:
              38 This affects my team
              Watchers:
              52 Start watching this issue

                Created:
                Updated:
                Resolved: