Details

      Description

      Creating a new role in PlatformUI fails with the error:

      Could not find 'eZ\Publish\SPI\Persistence\User\Role' with identifier 'ID: XX, Status: 0' 

        Issue Links

          Activity

          Hide
          Gunnstein Lye added a comment - - edited

          Confirmed. Obviously it was working before. [~jerome.vieilledent@ez.no], could this have anything to do with new role editing changes?

          Update: It is failing because new drafts now have version = -1. The updateRoleAction() tries to load a draft where version = roleId, this doesn't exist yet. We could add an OR clause to the select, to support both cases:
          ( version = roleId OR (version = -1 AND role_id = roleId) )

          Nevermind, I have a better solution, PR coming soon.

          Show
          Gunnstein Lye added a comment - - edited Confirmed. Obviously it was working before. [~jerome.vieilledent@ez.no] , could this have anything to do with new role editing changes? Update: It is failing because new drafts now have version = -1. The updateRoleAction() tries to load a draft where version = roleId, this doesn't exist yet. We could add an OR clause to the select, to support both cases: ( version = roleId OR (version = -1 AND role_id = roleId) ) Nevermind, I have a better solution, PR coming soon.
          Show
          Gunnstein Lye added a comment - PR: https://github.com/ezsystems/PlatformUIBundle/pull/399
          Show
          Gunnstein Lye added a comment - Merged in master: https://github.com/ezsystems/PlatformUIBundle/commit/cb32213d8a5ac79f271f3e6f34ff0fccc7a1f287
          Hide
          Rui Silva (Inactive) added a comment -

          Tested and approved by QA for master.

          Show
          Rui Silva (Inactive) added a comment - Tested and approved by QA for master.

            People

            • Assignee:
              Unassigned
              Reporter:
              Miguel das Neves Jacinto (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 10 minutes
                2h 10m