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

Search with offset can ends up in an exception if there is no result

    XMLWordPrintable

    Details

      Description

      When searching for content with the SearchService if there is no results because we have "paginated" with an offset the search ends up in an ezc Database exception.

      The reason is in the eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\EzcDatabase.php file in the method find.

      First there is a check to catch if there is no result and then the search is done. The problem is that this check for no result is made with no regard for the offset so the system think that there is result and try to load empty contentIds : it ends up with a wrong query and Zeta Components throws an exception.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            msevere Matthieu Sévère
            Votes:
            0 Vote for this issue
            Watchers:
            1 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 - 2 hours, 15 minutes
                2h 15m