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

Adding hundreds of page restrictions causes error to appear in the UI when one more is added

      Summary

      Adding hundreds of page restrictions causes error to appear in the UI when one more is added: There was an error loading the page restrictions. Please try again later.

      Steps to Reproduce

      1. Add 215 users to the page view restrictions on a page
      2. Try to add one more and when Save is clicked an error message appears in the UI: There was an error loading the page restrictions. Please try again later.

      Expected Results

      Another user would be added to the restrictions.

      Actual Results

      An error message appears in the UI and nothing is logged in atlassian-confluence.log.

      Notes

      Removing a restriction does not cause an error.

      Workarounds

      1. Use groups to limit the number of individual users added to a page.
      2. Use IE or Firefox to manage restrictions, as this seems to only occur in Chrome

      Resolution

      The problem occurs because we were using a GET request and passing the user keys in the URL, and when you add hundreds of users, you end up hitting the browser limit for URL length. This is why Chrome fails first (their max URL length appears to be shorter), and why IE or Firefox will work up until a point and then fail as well.

      The fix was to change the request from GET to POST and pass the user keys in the header. This means we will no longer hit the browser URL length limit because the URL no longer contains the user keys.

      Upgrade to Confluence 6.0.4 or above to receive the fix.

            [CONFSERVER-39465] Adding hundreds of page restrictions causes error to appear in the UI when one more is added

            Using Firefox and IE allows to add a bit more users, but later the problem comes back.

            Anton Kuzmich added a comment - Using Firefox and IE allows to add a bit more users, but later the problem comes back.

            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.

            Zhenhuan Zhou (Inactive) 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.

            I'm also experiencing this issue while using Chrome. Is there a fix for this coming any time soon?

            Safari works as well, by the way. 

            Austin Griffith added a comment - I'm also experiencing this issue while using Chrome. Is there a fix for this coming any time soon? Safari works as well, by the way. 

            Worked for me on IE, so it seems some sort of Chrome Bug.

            Kamlesh Rao added a comment - Worked for me on IE, so it seems some sort of Chrome Bug.

            Jason D Smith added a comment - - edited

            I'm curious why there is no movement here. I've got multiple users who are stuck because the restrictions list has become unusable.
            Update: Two users said they tried Firefox and it worked for them there. Not sure if this is a Chrome bug or if their cookies are getting corrupted, or what.

            Jason D Smith added a comment - - edited I'm curious why there is no movement here. I've got multiple users who are stuck because the restrictions list has become unusable. Update: Two users said they tried Firefox and it worked for them there. Not sure if this is a Chrome bug or if their cookies are getting corrupted, or what.

            Man Che added a comment -

            I am using version 5.9.4 and I see very similar problem when adding more user to a page with larger number of user on the Page restriction, it give this error "There was an error submitting the page restrictions. Please try again later." on the screen, while I cannot find any record from the log.

            Man Che added a comment - I am using version 5.9.4 and I see very similar problem when adding more user to a page with larger number of user on the Page restriction, it give this error "There was an error submitting the page restrictions. Please try again later." on the screen, while I cannot find any record from the log.

            oib added a comment -

            And in 5.8.18 are the same problems....

            Fix this please!

            oib added a comment - And in 5.8.18 are the same problems.... Fix this please!

            oib added a comment -

            This also happens in Confluence 5.8.14.

            The workaround is not a option. Is there a other fix?

            oib added a comment - This also happens in Confluence 5.8.14. The workaround is not a option. Is there a other fix?

            LASER added a comment -

            Page restriction became unresponsive when hit by this bug. We were not even able to remove users from the page restriction and get error as attached in bug. We copied the page to different space because copying the page does not takes page restriction but move will keep the page restriction as it is.

            Create a copy of page, which is having trouble with page restriction and then assign groups for page restriction is work around for this bug.

            LASER added a comment - Page restriction became unresponsive when hit by this bug. We were not even able to remove users from the page restriction and get error as attached in bug. We copied the page to different space because copying the page does not takes page restriction but move will keep the page restriction as it is. Create a copy of page, which is having trouble with page restriction and then assign groups for page restriction is work around for this bug.

              dunterwurzacher Denise Unterwurzacher [Atlassian] (Inactive)
              aworley Ann Worley (Inactive)
              Affected customers:
              11 This affects my team
              Watchers:
              25 Start watching this issue

                Created:
                Updated:
                Resolved: