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

findLocations does not support subtree limitation on content/read policy

    XMLWordPrintable

Details

    Description

      When logged with a user having content/read with a subtree limitation (or with a role having a Subtree limitation applied), any use of SearchService::findLocations() will throw a NotImplementedException :

      NotImplementedException: Intentionally not implemented: No visitor available for: eZ\Publish\API\Repository\Values\Content\Query\Criterion\LocationId with operator =
      

      thrown by /vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Search/Common/Gateway/CriteriaConverter.php at line 58

      Steps to reproduce
      1. Assign a content/read policy to the anonymous role, with a subtree limitation applied to the content root node.
      2. Make a "symfony stack page" with a SearchService::findLocations() call, with any Criterions
      3. Check this page with anonymous user

      Attachments

        Activity

          People

            Unassigned Unassigned
            mclone mclone
            Votes:
            0 Vote for this issue
            Watchers:
            2 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 - 45 minutes
                45m