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

          Eduardo Fernandes (Inactive) created issue -
          Eduardo Fernandes (Inactive) made changes -
          Field Original Value New Value
          Status Open [ 1 ] Confirmed [ 10037 ]
          Petar Spanja (Inactive) logged work - 12/May/14 8:51 AM
          • Time Spent:
            1 hour, 45 minutes
             

            fixing

          Paulo Lopes (Inactive) made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          Gunnstein Lye made changes -
          Description If a new ObjectState is created, you can 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 nor 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

          h3. 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
          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 nor 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

          h3. 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
          Gunnstein Lye made changes -
          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 nor 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

          h3. 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
          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

          h3. 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
          Petar Spanja (Inactive) made changes -
          Assignee Petar Spanja [ petar.spanja@ez.no ]
          Petar Spanja (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Petar Spanja (Inactive) logged work - 13/May/14 9:01 AM
          • Time Spent:
            3 hours
             

            fixing

          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
          Petar Spanja (Inactive) made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          Petar Spanja (Inactive) logged work - 15/May/14 9:05 AM
          • Time Spent:
            30 minutes
             

            fixing

          Show
          Petar Spanja (Inactive) added a comment - Merged in https://github.com/ezsystems/ezpublish-kernel/commit/e97876d15faa40803f4c60b3c63a619843908cf7
          Petar Spanja (Inactive) made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Petar Spanja (Inactive) made changes -
          Status Development Review done [ 10028 ] Documentation done [ 10011 ]
          Pedro Resende (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Petar Spanja [ petar.spanja@ez.no ] Pedro Resende [ pedro.resende@ez.no ]
          Joao Pingo (Inactive) made changes -
          Assignee Pedro Resende [ pedro.resende@ez.no ] Joao Pingo [ joao.pingo@ez.no ]
          Joao Pingo (Inactive) made changes -
          Rank Ranked higher
          Joao Pingo (Inactive) made changes -
          Flagged Impediment [ 10000 ]
          Joao Pingo (Inactive) made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 2 hours [ 7200 ]
          Worklog Id 48201 [ 48201 ]
          Joao Pingo (Inactive) logged work - 15/May/14 6:31 PM
          • Time Spent:
            2 hours
             

            Testing

          Joao Pingo (Inactive) logged work - 16/May/14 2:00 AM - edited
          • Time Spent:
            3 hours
             

            Testing

          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
          Joao Pingo (Inactive) made changes -
          Link This issue is blocked by EZP-22749 [ EZP-22749 ]
          Joao Pingo (Inactive) made changes -
          Time Spent 2 hours [ 7200 ] 6 hours [ 21600 ]
          Worklog Id 48226 [ 48226 ]
          Joao Pingo (Inactive) made changes -
          Remaining Estimate 0 minutes [ 0 ] 1 hour [ 3600 ]
          Time Spent 6 hours [ 21600 ] 5 hours [ 18000 ]
          Worklog Id 48226 [ 48226 ]
          Joao Pingo (Inactive) logged work - 26/May/14 10:24 AM
          • Time Spent:
            2 hours
             

            Sent Back

          Joao Pingo (Inactive) made changes -
          Status QA [ 10008 ] InputQ [ 10001 ]
          Assignee Joao Pingo [ joao.pingo@ez.no ]
          André Rømcke made changes -
          Assignee Petar Spanja [ petar.spanja@ez.no ]
          Joao Inacio (Inactive) made changes -
          Summary Cache not being cleared with object state creating Cache not being cleared when creating object state
          Joao Pingo (Inactive) made changes -
          Remaining Estimate 1 hour [ 3600 ] 0 minutes [ 0 ]
          Time Spent 5 hours [ 18000 ] 7 hours [ 25200 ]
          Worklog Id 48443 [ 48443 ]
          Petar Spanja (Inactive) logged work - 29/May/14 9:30 AM
          • Time Spent:
            2 hours
             

            fix backport

          André Rømcke made changes -
          Fix Version/s 5.1 [ 11280 ]
          Fix Version/s 5.3 [ 11282 ]
          Fix Version/s 5.2 [ 12582 ]
          André Rømcke made changes -
          Affects Version/s 5.2 [ 12582 ]
          Affects Version/s 5.1 [ 11280 ]
          Affects Version/s 5.3 [ 11282 ]
          André Rømcke made changes -
          Fix Version/s 5.1 Maintenance [ 12301 ]
          Fix Version/s 5.2 Maintenance [ 12782 ]
          Fix Version/s 5.3.1 [ 13482 ]
          Petar Spanja (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Petar Spanja (Inactive) logged work - 30/May/14 9:32 AM
          • Time Spent:
            3 hours
             

            fix backport

          Petar Spanja (Inactive) made changes -
          Status Development [ 3 ] Documentation done [ 10011 ]
          Joao Pingo (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Petar Spanja [ petar.spanja@ez.no ] Joao Pingo [ joao.pingo@ez.no ]
          Joao Pingo (Inactive) made changes -
          Status QA [ 10008 ] InputQ [ 10001 ]
          Assignee Joao Pingo [ joao.pingo@ez.no ]
          Yannick Roger (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Assignee Yannick Roger [ yannick.roger@ez.no ]
          Joao Pingo (Inactive) logged work - 03/Jun/14 10:19 AM
          • Time Spent:
            3 hours
             

            Testing

          Yannick Roger (Inactive) made changes -
          Flagged Impediment [ 10000 ]
          Yannick Roger (Inactive) made changes -
          Status Development [ 3 ] Documentation done [ 10011 ]
          Joao Pingo (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Yannick Roger [ yannick.roger@ez.no ] Joao Pingo [ joao.pingo@ez.no ]
          Joao Pingo (Inactive) made changes -
          Status QA [ 10008 ] InputQ [ 10001 ]
          Assignee Joao Pingo [ joao.pingo@ez.no ]
          Yannick Roger (Inactive) made changes -
          Assignee Yannick Roger [ yannick.roger@ez.no ]
          Yannick Roger (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Joao Pingo (Inactive) made changes -
          Time Spent 7 hours [ 25200 ] 1 day, 2 hours [ 36000 ]
          Worklog Id 48649 [ 48649 ]
          Yannick Roger (Inactive) made changes -
          Status Development [ 3 ] Documentation done [ 10011 ]
          Joao Pingo (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Yannick Roger [ yannick.roger@ez.no ] Joao Pingo [ joao.pingo@ez.no ]
          Yannick Roger (Inactive) made changes -
          Affects Version/s 5.1 [ 11280 ]
          Joao Pingo (Inactive) made changes -
          Assignee Joao Pingo [ joao.pingo@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Joao Pingo (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Joao Pingo (Inactive) made changes -
          Comment [ QA Approved ]
          Joao Pingo (Inactive) made changes -
          Status Reopened [ 4 ] Confirmed [ 10037 ]
          Hide
          Joao Pingo (Inactive) added a comment -

          QA Approved

          Show
          Joao Pingo (Inactive) added a comment - QA Approved
          Joao Pingo (Inactive) made changes -
          Status Confirmed [ 10037 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Petar Spanja (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Petar Spanja (Inactive) made changes -
          Time Spent 1 day, 2 hours [ 36000 ] 1 day, 3 hours, 45 minutes [ 42300 ]
          Worklog Id 48827 [ 48827 ]
          Petar Spanja (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Petar Spanja (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Petar Spanja (Inactive) made changes -
          Time Spent 1 day, 3 hours, 45 minutes [ 42300 ] 1 day, 6 hours, 45 minutes [ 53100 ]
          Worklog Id 48828 [ 48828 ]
          Petar Spanja (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Petar Spanja (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Petar Spanja (Inactive) made changes -
          Time Spent 1 day, 6 hours, 45 minutes [ 53100 ] 1 day, 7 hours, 15 minutes [ 54900 ]
          Worklog Id 48833 [ 48833 ]
          Petar Spanja (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Petar Spanja (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Petar Spanja (Inactive) made changes -
          Time Spent 1 day, 7 hours, 15 minutes [ 54900 ] 2 days, 1 hour, 15 minutes [ 62100 ]
          Worklog Id 48863 [ 48863 ]
          Petar Spanja (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Petar Spanja (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Petar Spanja (Inactive) made changes -
          Time Spent 2 days, 1 hour, 15 minutes [ 62100 ] 2 days, 4 hours, 15 minutes [ 72900 ]
          Worklog Id 48866 [ 48866 ]
          Petar Spanja (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 63147 ] EZ* Development Workflow [ 85034 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 85034 ] EZEE Development Workflow [ 123804 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          1m 18s 1 eduardo.fernandes@ez.no 09/May/14 5:49 PM
          Confirmed Confirmed InputQ InputQ
          2d 18h 45m 1 Paulo Lopes (Inactive) 12/May/14 12:34 PM
          Development Development Development Review Development Review
          21h 2m 1 Petar Spanja (Inactive) 13/May/14 2:09 PM
          Development Review Development Review Development Review done Development Review done
          1d 22h 30m 1 Petar Spanja (Inactive) 15/May/14 12:39 PM
          Development Review done Development Review done Documentation Review done Documentation Review done
          1m 59s 1 Petar Spanja (Inactive) 15/May/14 12:41 PM
          QA QA InputQ InputQ
          11d 1h 17m 3 Joao Pingo (Inactive) 06/Jun/14 5:16 PM
          InputQ InputQ Development Development
          4d 5h 34m 4 yannick.roger@ez.no 06/Jun/14 5:43 PM
          Development Development Documentation Review done Documentation Review done
          7d 1h 54m 3 yannick.roger@ez.no 09/Jun/14 10:56 AM
          Documentation Review done Documentation Review done QA QA
          2d 22h 8m 4 Joao Pingo (Inactive) 09/Jun/14 3:03 PM
          QA QA Closed Closed
          57m 37s 1 Joao Pingo (Inactive) 09/Jun/14 4:01 PM
          Reopened Reopened Confirmed Confirmed
          1m 12s 1 Joao Pingo (Inactive) 09/Jun/14 4:10 PM
          Confirmed Confirmed Closed Closed
          24s 1 Joao Pingo (Inactive) 09/Jun/14 4:11 PM
          Closed Closed Reopened Reopened
          13d 15h 29m 6 Petar Spanja (Inactive) 23/Jun/14 7:32 AM
          Reopened Reopened Closed Closed
          6s 5 Petar Spanja (Inactive) 23/Jun/14 7:32 AM

            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