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

Transaction error when working with Confluence page restrictions in Confluence 6.5

      Summary

      This is about a bug in Confluence 6.5.0 and later that I've already discussed with the Confluence team on App Week in Amsterdam. I wanted to submit this through the official channel as well in order to raise awareness a bit because this problem prevents us from marking two of our most important apps (Scroll Versions and Scroll Translations) as compatible with Confluence 6.5.

      Since this bug could break the content publishing workflows of our customers we're very reluctant to mark the apps as compatible. And while it appears not to be a bug in our code base, to our customers it looks like we're screwing up the compatibility update. We got quite a few update requests in the meantime.

      Steps to Reproduce

      1. Unzip duplicate-permissions.zip
      2. run atlas-debug
      3. Wait until Confluence has started
      4. Open the project in Idea (any IDE)
      5. Launch the unit tests in the single test class; note @Ignore annotations in ContentPermissionErrorTest#works and ContentPermissionErrorTest#fails

      Expected Results

      Unit tests should pass.

      Actual Results

      Unit test ContentPermissionErrorTest#fails fails, see stacktrace.txt for logs.

      Notes

      Basically, the error happens whenever you call getInheritedContentPermissionSets on a child page (this is where the duplicates are put into the cache for the parent page), then afterwards call setContentPermissions on the parent in order to remove permissions. This exception is raised in HibernatePageDao in the method getDescendants() on query.list().

      These calls do not necessarily need to come from within our plugin.

      Workaround

      None yet

        1. duplicate-permissions.zip
          15 kB
          Ian Ragudo
        2. stacktrace.txt
          39 kB
          Ian Ragudo

          Form Name

            [CONFSERVER-54340] Transaction error when working with Confluence page restrictions in Confluence 6.5

            Minh Tran added a comment -

            A fix for this issue is now available for Confluence Server customers.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Minh Tran added a comment - A fix for this issue is now available for Confluence Server customers. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Hi,

            I would love to see this issue prioritized as critical or blocker. Basically this issue affects all Confluence customers no matter if they are using the mentioned Scroll Apps or not. For Scroll Apps this issue however gets a blocker as the software is mission critical for our customers. Basically all apps which have to deal with large transactions and massive potential use of permission sets have a huge problem.

            Thx, Tobias

            Tobias Anstett (K15t) added a comment - Hi, I would love to see this issue prioritized as critical or blocker. Basically this issue affects all Confluence customers no matter if they are using the mentioned Scroll Apps or not. For Scroll Apps this issue however gets a blocker as the software is mission critical for our customers. Basically all apps which have to deal with large transactions and massive potential use of permission sets have a huge problem. Thx, Tobias

              jxie Chii (Inactive)
              8a6996ac4f20 Jens Rutschmann [K15t]
              Affected customers:
              11 This affects my team
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: