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

Add the hide/reveal buttons in the locations tab failing and clearing child's cache

    Details

      Description

      While testing EZP-24814, If found out that if you hide a parent then his children and grand-children aren't hidden

      Steps:

      1. Create folder A
      2. Create folder A.1 under folder A
      (Edit - Added step): (2.1) Try to access to folder A/folder A.1 on the frontpage and the folder will be present
      3. Hide folder A
      4. Try to access to folder A/folder A.1 on the frontpage and the folder will be present
      5. If you clear your browsers cache and try to access again folder A/folder A.1 on the frontpage and you'll get a 404

        Issue Links

          Activity

          Hide
          Gunnstein Lye added a comment -

          I cannot reproduce this with current platformui/demobundle. After steps 1-3 I access /Folder-A/Folder-A1 and I immediately get the correct 404: "Location cannot be displayed as it is flagged as invisible." No cache clearing done. Folder A1 is marked "hidden by superior" in the backend. If I reveal Folder A and reload A1 in the frontend, it is correctly shown.

          Show
          Gunnstein Lye added a comment - I cannot reproduce this with current platformui/demobundle. After steps 1-3 I access /Folder-A/Folder-A1 and I immediately get the correct 404: "Location cannot be displayed as it is flagged as invisible." No cache clearing done. Folder A1 is marked "hidden by superior" in the backend. If I reveal Folder A and reload A1 in the frontend, it is correctly shown.
          Hide
          Paulo Nunes (Inactive) added a comment -

          Between step (2) and (3) from description, One step is missing, that is equal to step (4). I added now to the description.

          Two things seems to be happening:

          • If we Hide the parent, this action is being ignored and the cached content is retrieved
          • If no cache exists, a 404 is displayed
          Show
          Paulo Nunes (Inactive) added a comment - Between step (2) and (3) from description, One step is missing, that is equal to step (4). I added now to the description. Two things seems to be happening: If we Hide the parent, this action is being ignored and the cached content is retrieved If no cache exists, a 404 is displayed
          Hide
          Gunnstein Lye added a comment - - edited

          I still can't reproduce it. In step 4, the folder 404s as it should. I tried both reloading the page with F5 (which might clear browser caches) and by selecting the URL and pressing enter (which won't). Firefox/Chrome.

          Edit: D'oh. It's reproducible in prod mode. Never mind.

          Show
          Gunnstein Lye added a comment - - edited I still can't reproduce it. In step 4, the folder 404s as it should. I tried both reloading the page with F5 (which might clear browser caches) and by selecting the URL and pressing enter (which won't). Firefox/Chrome. Edit: D'oh. It's reproducible in prod mode. Never mind.
          Hide
          André Rømcke added a comment -

          Status update

          Can reproduce, work done in EZP-25003 does not solve this, and even if we could solve direct child cache issues by adding a Event listener for ChildrenLocations, it would not solve the issue for items deeper in the tree. So unless customer pressure puts that half fix on the agenda, we will postpone fixing as part of EZP-25696 which is being researched atm.

          Show
          André Rømcke added a comment - Status update Can reproduce, work done in EZP-25003 does not solve this, and even if we could solve direct child cache issues by adding a Event listener for ChildrenLocations, it would not solve the issue for items deeper in the tree. So unless customer pressure puts that half fix on the agenda, we will postpone fixing as part of EZP-25696 which is being researched atm.
          Hide
          Bertrand Dunogier added a comment -

          André Rømcke since you seem familiar with the topic, do you know if it is fixed by the multi-tagging implementation that we now have ?

          Show
          Bertrand Dunogier added a comment - André Rømcke since you seem familiar with the topic, do you know if it is fixed by the multi-tagging implementation that we now have ?
          Hide
          André Rømcke added a comment -

          Bertrand Dunogier theoretically yes, if slots for hide/unhide is now clearing path items it should.
          But someone would need to verify that.

          Show
          André Rømcke added a comment - Bertrand Dunogier theoretically yes, if slots for hide/unhide is now clearing path items it should. But someone would need to verify that.

            People

            • Assignee:
              Unassigned
              Reporter:
              Pedro Resende (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: