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

Internal cache not properly updating on restoration of trashed node

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • Customer request, 5.3.8, 5.4.6
    • 2014.11, 5.3.7, 5.4.5
    • Caching
    • None
    • eZ Publish 5.4.5, public API, symfony commands

    Description

      Steps to reproduce:

      1. Create a new class with an "object relation" (singular) attribute (please refer to the attached "5239-1.0-1.ezpkg" package);
      2. Create 2 Contents for the new class, "5239 Item A" and "5239 Item B":

      Name: 5239 Item A
      Content Id: 121
      Location Id: 123
      
      Name: 5239 Item B
      Content Id: 122
      Location Id: 124
      

      3. Edit "5239 Item A" and relate it with "5239 Item B" using the existing "object relation" field;
      4. Use a symfony command that contains the following code to confirm that "5239 Item B" is related to "5239 Item A":

      $versionInfo = $contentService->loadVersionInfo( $contentInfo );
      $relations = $contentService->loadRelations( $versionInfo );
      

      Please use the attached "RelationsCommand.php" command, and adapt namespace etc as needed.

      5. Delete "5239 Item B" into trash;
      6. Edit "5239 Item A" and remove the "5239 Item B" relation;
      7. Use the command from step 4 to verify that the relation is gone;
      8. Restore "5239 Item B" from trash to its original location. The restored content now has content Id = 122 and location Id = 125;
      9. Use the command to see that:

      • "5239 Item B" is related to "5239 Item A", which is wrong, since that relation was removed in step 6;
      • In any case, "5239 Item B" is listed as still having location Id = 124, which is wrong, as it is now 125.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: