Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22836

Cache not being cleared when creating object state

    Details

      Description

      If a new ObjectState is created, you can't create a role that uses it to limit any function because it's not displayed, giving the impression the ObjectState does not exist.

      This happens because the cache is not being cleaned after the ObjectState creation. If you clean the caches manually, the ObjectState Will be displayed on the policies limitation.

      Note: This problem started to happen on eZ Publish 5.1

      Steps to Reproduce

      1) Create a new ObjectState with two values: true/false
      2) Edit the admin role and try to add a new Content\edit policy, limited by ObjectState true.
      3) The ObjectStates column won't be displayed
      4) Clear the caches
      5) Now it's possible to choose the ObjectState

        Issue Links

          Activity

          Hide
          Petar Spanja (Inactive) added a comment -

          Pull request implementing slots for clearing Legacy Stack object state cache:

          https://github.com/ezsystems/ezpublish-kernel/pull/854

          Legacy Stack part is covered by a wider issue:

          https://jira.ez.no/browse/EZP-22749

          Show
          Petar Spanja (Inactive) added a comment - Pull request implementing slots for clearing Legacy Stack object state cache: https://github.com/ezsystems/ezpublish-kernel/pull/854 Legacy Stack part is covered by a wider issue: https://jira.ez.no/browse/EZP-22749
          Show
          Petar Spanja (Inactive) added a comment - Merged in https://github.com/ezsystems/ezpublish-kernel/commit/e97876d15faa40803f4c60b3c63a619843908cf7
          Hide
          Joao Pingo (Inactive) added a comment -

          @Peter
          Reopened: https://jira.ez.no/browse/EZP-22749 since we need a backport for 5.2

          Show
          Joao Pingo (Inactive) added a comment - @Peter Reopened: https://jira.ez.no/browse/EZP-22749 since we need a backport for 5.2
          Hide
          Joao Pingo (Inactive) added a comment -

          QA Approved

          Show
          Joao Pingo (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Eduardo Fernandes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              6 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 days, 4 hours, 15 minutes
                2d 4h 15m