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

Wiki to XHTML migration fails with array out of bounds error

      When a page contains a link which contains the string '[::]', then migration can fail with the following error in the logs. Please also see the attached screens shot which shows the migration failing in the UI.

      2013-05-14 11:24:02,176 FATAL [main] [atlassian.config.lifecycle.LifecycleManager] panicAndShutdown Unable to start up Confluence. Fatal error during startup sequence: confluence.lifecycle.core:pluginframeworkdependentupgrades (Run all the upgrades that require the plugin framework to be available) - com.atlassian.confluence.content.render.xhtml.migration.exceptions.MigrationException: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 1
      com.atlassian.confluence.content.render.xhtml.migration.exceptions.MigrationException: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 1
      

      The reason appears to be that the link interprets '[::]' as an array for the link. For example, the text could be 'http://www.atlassian.com/[::]'

      Steps to Reproduce

      1. Install a version of Confluence older then 4 (say 3.5.17)
      2. Create a new page and paste 'http://www.atlassian.com/[::]' to be the body of said page
      3. Upgrade to any version of Confluence greater than 4
      4. Upon startup, we will receive an error stating that the upgrade has failed to an array index error.

      Workaround
      See Wiki Markup Migration Fails with Array Out of Bounds Exception

            [CONFSERVER-29291] Wiki to XHTML migration fails with array out of bounds error

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2876205 ] New: CONFSERVER Bug Workflow v4 [ 3005256 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2803834 ] New: JAC Bug Workflow v3 [ 2876205 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2720417 ] New: JAC Bug Workflow v2 [ 2803834 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2389435 ] New: JAC Bug Workflow [ 2720417 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2267282 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2389435 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2210692 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2267282 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2197233 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2210692 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1942324 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2197233 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1739780 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1942324 ]

              Unassigned Unassigned
              acampbell AndrewA
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: