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

    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.

        Activity

        Show
        Petar Spanja (Inactive) added a comment - Pull request: https://github.com/ezsystems/ezpublish-kernel/pull/349
        Show
        Petar Spanja (Inactive) added a comment - Fixed in ezpublish-kernel/master: https://github.com/ezsystems/ezpublish-kernel/commit/c575fc8bfb56c880aacd8281e1291b9358a0ab9c

          People

          • Assignee:
            Unassigned
            Reporter:
            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