Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: 2014.11, 5.3.4, 5.4.1
    • Fix Version/s: Customer request, 2015.01, 5.3.5, 5.4.2
    • Component/s: Caching
    • Labels:
      None
    • Environment:

      eZ Publish 5.3.3 Platform

      Description

      When saving a draft (not publishing), preview won't reflect the changes. A previously cached content is displayed instead.


      Steps to reproduce:

      1.1) I'm editing an existing object in BO (also created in BO)
      1.2) I change my title
      1.3)I'm pushing "preview" button
      => Everything is OK: title is 1.2

      2.1) I'm going back to edition
      2.2) I change my title
      2.3) I'm pushing "preview" button
      => same title as 1.2

      3.1) I'm going back to edition
      3.2) Restarting varnish
      3.3) Refreshing preview page
      => same title as 1.2

      4.1) I'm going back to edition
      4.2) Restarting memcached
      4.3) Refreshing preview page
      => Everything is OK: title is 2.2

      This seems to happen on "prod" environment only.

        Issue Links

          Activity

          Hide
          Rui Silva (Inactive) added a comment - - edited

          The test I'm using is as follows:

          • I'm creating a content on administration interface, and publish it (for instance with name "contentV1").
          • Then I edit its name for instance to "contentV2", and preview it (Preview button on the leftside bar, not the one above)
          • On preview I see it with name "contentV2" as expected.
          • Then I click "Back to edit" and change its name again, now to "contentV3"
          • I preview it again, and it still has its old name "contentV2".
            Without the fix, this happens for Articles, for Blogpost one single edit suffices to see it happen, doesn't happen for folders, etc
            With the fix, various contents seem to work already, but not Blog Post for instance.
            I didn't try this on master since this has a fix for Legacy and issues in this situation are no longer tested in master.
          Show
          Rui Silva (Inactive) added a comment - - edited The test I'm using is as follows: I'm creating a content on administration interface, and publish it (for instance with name "contentV1"). Then I edit its name for instance to "contentV2", and preview it (Preview button on the leftside bar, not the one above) On preview I see it with name "contentV2" as expected. Then I click "Back to edit" and change its name again, now to "contentV3" I preview it again, and it still has its old name "contentV2". Without the fix, this happens for Articles, for Blogpost one single edit suffices to see it happen, doesn't happen for folders, etc With the fix, various contents seem to work already, but not Blog Post for instance. I didn't try this on master since this has a fix for Legacy and issues in this situation are no longer tested in master.
          Show
          Jérôme Vieilledent (Inactive) added a comment - Hi This was due to a bug in the DemoBundle, which is now fixed: master: https://github.com/ezsystems/DemoBundle/commit/cae80307a7b45c1be8b0291877c8dc72a8d65595 5.4: https://github.com/ezsystems/DemoBundle/commit/eae2dd6fe52f3037ffb9d8299ef6f2de667f3423 stable-5.3: https://github.com/ezsystems/DemoBundle/commit/6d916b5439c8c93564b02449b544a322e97826c4
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          As for breadcrumbs, it's also related to DemoBundle. Not related to preview itself.

          However, documentation need to be updated to explain that $params argument is important to be passed on to the original ViewController as it may contain the content object to be previewed.

          Show
          Jérôme Vieilledent (Inactive) added a comment - As for breadcrumbs, it's also related to DemoBundle. Not related to preview itself. However, documentation need to be updated to explain that $params argument is important to be passed on to the original ViewController as it may contain the content object to be previewed.
          Show
          Jérôme Vieilledent (Inactive) added a comment - Added a warning here : https://doc.ez.no/display/EZP/How+to+use+a+custom+controller+to+display+a+content+or+location
          Hide
          Rui Silva (Inactive) added a comment -

          Tested and approved by QA.

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

            People

            • Assignee:
              Unassigned
              Reporter:
              Ricardo Correia (Inactive)
            • Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: