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

Recovering Location from trash with SPI cache enabled returns wrong main Location id in ContentInfo

    XMLWordPrintable

Details

    Description

      TrashService::trash() returns TrashItem object, which contains ContentInfo. Since Content will have no Location, ContentInfo::mainLocationId will be null.

      When item is recovered from trash using TrashService::recover(), Location will be returned and also set as main Location for the Content (as it is actually at this point the only Location of the Content). Since SPI cache for ContentInfo info is not cleared, this Location will have stale ContentInfo with mainLocationId property equal to null.

      Attachments

        Activity

          People

            Unassigned Unassigned
            petar.spanja-obsolete@ez.no Petar Spanja (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: