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

Exception upon opening "Browse -> Spacedirectory" in Browse is not fixed by the upgrade.

      Problem description

      This error occurs for new installations of 4.0.3 where, in the setup wizard, the user has opted to install the demo space. And under certain circumstances which the error is caused by a malformed row in the table bodycontent.

      However it is not fixed on upgrade, the error remains.

      Here are the steps that you can take to reproduce this bug :

      1. Install a clean instance of Confluence 4.0.3. (Installed by following the setup wizard, and set user management to 'Manage Users and Groups within Confluence')
      2. Access Browse>Space Directory and there will be an error. The stack trace is as follows :
      org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getBodyAsString' in  class com.atlassian.confluence.spaces.SpaceDescription$$EnhancerByCGLIB$$f653be5e threw exception java.lang.UnsupportedOperationException: The body of this ContentEntityObject ('') was 'BodyType:XHTML' but was expected to be 'BodyType:WIKI' at /templates/spacedirectory.vm[line 62, column 71]
      	at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
      	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
      	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
      ...	
      Caused by: java.lang.UnsupportedOperationException: The body of this ContentEntityObject ('') was 'BodyType:XHTML' but was expected to be 'BodyType:WIKI'
      	at com.atlassian.confluence.core.ContentEntityObject.getBodyContent(ContentEntityObject.java:169)
      	at com.atlassian.confluence.core.ContentEntityObject.getBodyAsString(ContentEntityObject.java:206)
      	at com.atlassian.confluence.core.ContentEntityObject$$FastClassByCGLIB$$96df24d5.invoke(<generated>)
      	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      	at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108)
      	at com.atlassian.confluence.spaces.SpaceDescription$$EnhancerByCGLIB$$f653be5e.getBodyAsString(<generated>)
      	... 197 more
      

      Workaround

      1. Open this URL in your browser: <Confluence-URL>/admin/force-upgrade.action
      2. Select changeSpaceDescriptionsBodyTypeUpgradeTask in the Upgrade task to run dropdown list.
      3. Choose Force Upgrade.

      Hope This helps!

            [CONFSERVER-24282] Exception upon opening "Browse -> Spacedirectory" in Browse is not fixed by the upgrade.

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2896648 ] New: CONFSERVER Bug Workflow v4 [ 2989587 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2788007 ] New: JAC Bug Workflow v3 [ 2896648 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2736005 ] New: JAC Bug Workflow v2 [ 2788007 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392818 ] New: JAC Bug Workflow [ 2736005 ]
            Alex Yakovlev (Inactive) made changes -
            Labels Original: affects-server bugfix kaap294 loyalty spaces st10 New: affects-server kaap294 loyalty spaces st10
            Alex Yakovlev (Inactive) made changes -
            Labels Original: affects-server bugfix kaap294 spaces st10 New: affects-server bugfix kaap294 loyalty spaces st10
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2275489 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392818 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2234063 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2275489 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2196053 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2234063 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1939308 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2196053 ]

              igerges Issac Gerges (Inactive)
              cschedler Carlos Alberto Feijo Schedler [Atlassian]
              Affected customers:
              3 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: