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

Clicking on "View Change" if the description of the space has been changed causes exceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • None
    • 3.3.3, 3.4.9, 3.5.13, 4.0, 4.0.3
    • None
    • MySQL, Windows 7

      Summary of Bug

      If the description of a space is changed, and the user clicks on 'view changes', Confluence will be faced with errors.

      Steps to Reproduce

      1. Change Space description via Browse > "Space Admin"
      2. Wait 2-3 minutes (or flush cache)
      3. In "Recently Updated" in the dashboard, it will say that there have been changes on the space.
      4. Click on "view change" -> Exception

      Findings

      Stack trace :

      java.lang.ClassCastException: com.atlassian.confluence.spaces.SpaceDescription cannot be cast to com.atlassian.confluence.pages.AbstractPage
      	at com.atlassian.confluence.pages.persistence.dao.hibernate.HibernateAbstractPageDao.getAbstractPageById(HibernateAbstractPageDao.java:17)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      ...
      

      I have tested this in 4.0.3, 4.0, 3.5.13, 3.4.9, and 3.3.3. All of these versions seem to be affected by this bug.

              Unassigned Unassigned
              jtye Joe Wai Tye (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: