Details

      Description

      Hi. Seems to be some kinda problem when duplicating roles. This is my test case.
      1l) create two folders under your root node, Folder1 and Folder2, for instance.
      2) Create a Role called Test 1, for example. Add content -> create and limit this to subtree Folder 1
      3) Copy Test 1 role and try to change Folder 1 to Folder 2 in limitation (you will need remove folder1 and folder 2)

      The result, copied role results in having no limitations at all while role1 says something like Subtree()...

      anyone can confirm this?

      Steps to reproduce

      Description says it all

        Issue Links

          Activity

          Hide
          Carlos Revillo added a comment -

          In fact, you don't need duplicating role for checking there's something strange.
          Another test case.

          Create a role, let's call it role1, with only one policy. content -> create. select subtree 'Folder 1' for limitation.

          Repeat this two or three times, creating Role 2, Role 3, Role 4, exactly the same as the first one.

          Now edit role 4, and delete subtree limitation. the other roles will lost this limitation too....

          In some cases, this may be lead into security problems... giving some people access to things they shouldn't

          Show
          Carlos Revillo added a comment - In fact, you don't need duplicating role for checking there's something strange. Another test case. Create a role, let's call it role1, with only one policy. content -> create. select subtree 'Folder 1' for limitation. Repeat this two or three times, creating Role 2, Role 3, Role 4, exactly the same as the first one. Now edit role 4, and delete subtree limitation. the other roles will lost this limitation too.... In some cases, this may be lead into security problems... giving some people access to things they shouldn't
          Hide
          Brendan Pike added a comment -

          I recently upgraded a site from 3.10.1 to 4.4.0 and now also experience similar trouble. When editing an existing Role all the Node and Subtree limitations are lost, and its impossible to re-add them. I can only assume such a serious issue is not effecting everyone.

          Show
          Brendan Pike added a comment - I recently upgraded a site from 3.10.1 to 4.4.0 and now also experience similar trouble. When editing an existing Role all the Node and Subtree limitations are lost, and its impossible to re-add them. I can only assume such a serious issue is not effecting everyone.
          Hide
          Kristof Coomans added a comment -

          Please close as a duplicate of #017616

          Show
          Kristof Coomans added a comment - Please close as a duplicate of #017616
          Hide
          Test Test_LN added a comment -

          (QA Note)Test cases designed for this issue:
          tc-472:Duplicate role, then change limitations on the copied one
          tc-473:Copy roles manually, then change subtree limitations

          Show
          Test Test_LN added a comment - (QA Note)Test cases designed for this issue: tc-472:Duplicate role, then change limitations on the copied one tc-473:Copy roles manually, then change subtree limitations
          Hide
          Jérôme Vieilledent added a comment -

          Duplicate of #017616

          Show
          Jérôme Vieilledent added a comment - Duplicate of #017616
          Hide
          Geir Arne Waaler added a comment -

          I move this from Code Review to Closed since it has been solved in another issue.

          Geir Arne Waaler
          eZ Documentation

          Show
          Geir Arne Waaler added a comment - I move this from Code Review to Closed since it has been solved in another issue. Geir Arne Waaler eZ Documentation
          Hide
          ezrobot added a comment -

          This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          Show
          ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

            People

            • Assignee:
              Jérôme Vieilledent
              Reporter:
              Carlos Revillo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: