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

Error 500 on search when trying to search space or single quote

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 1.7.3, 1.9.1
    • None
    • None

    Description

      In PlatformUI search action returns error 500 when trying to search single (or more) space or single quote without any other characters (words).

      There is response:

      {
          "ErrorMessage": {
              "_media-type": "application\/vnd.ez.api.ErrorMessage+json",
              "errorCode": 500,
              "errorMessage": "Internal Server Error",
              "errorDescription": "The expression ' OR ' expected at least 1 argument but none provided.",
              "trace": "#0 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Doctrine\/DoctrineExpression.php(56): eZ\\Publish\\Core\\Persistence\\Doctrine\\DoctrineExpression->combine(Array, ' OR ')\n#1 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Search\/Legacy\/Content\/Common\/Gateway\/CriterionHandler\/FullText.php(194): eZ\\Publish\\Core\\Persistence\\Doctrine\\DoctrineExpression->lOr(Array)\n#2 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Search\/Legacy\/Content\/Common\/Gateway\/CriterionHandler\/FullText.php(242): eZ\\Publish\\Core\\Search\\Legacy\\Content\\Common\\Gateway\\CriterionHandler\\FullText->getWordIdSubquery(Object(eZ\\Publish\\Core\\Persistence\\Doctrine\\SubselectDoctrineQuery), ''''''')\n#3 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Search\/Legacy\/Content\/Common\/Gateway\/CriteriaConverter.php(65): eZ\\Publish\\Core\\Search\\Legacy\\Content\\Common\\Gateway\\CriterionHandler\\FullText->handle(Object(eZ\\Publish\\Core\\Search\\Legacy\\Content\\Common\\Gateway\\CriteriaConverter), Object(eZ\\Publish\\Core\\Persistence\\Doctrine\\SelectDoctrineQuery), Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Query\\Criterion\\FullText), Array)\n#4 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Search\/Legacy\/Content\/Common\/Gateway\/CriterionHandler\/LogicalAnd.php(53): eZ\\Publish\\Core\\Search\\Legacy\\Content\\Common\\Gateway\\CriteriaConverter->convertCriteria(Object(eZ\\Publish\\Core\\Persistence\\Doctrine\\SelectDoctrineQuery), Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Query\\Criterion\\FullText), Array)\n#5 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Search\/Legacy\/Content\/Common\/Gateway\/CriteriaConverter.php(65): eZ\\Publish\\Core\\Search\\Legacy\\Content\\Common\\Gateway\\CriterionHandler\\LogicalAnd->handle(Object(eZ\\Publish\\Core\\Search\\Legacy\\Content\\Common\\Gateway\\CriteriaConverter), Object(eZ\\Publish\\Core\\Persistence\\Doctrine\\SelectDoctrineQuery), Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Query\\Criterion\\LogicalAnd), Array)\n#6 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Search\/Legacy\/Content\/Gateway\/DoctrineDatabase.php(151): eZ\\Publish\\Core\\Search\\Legacy\\Content\\Common\\Gateway\\CriteriaConverter->convertCriteria(Object(eZ\\Publish\\Core\\Persistence\\Doctrine\\SelectDoctrineQuery), Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Query\\Criterion\\LogicalAnd), Array)\n#7 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Search\/Legacy\/Content\/Gateway\/DoctrineDatabase.php(206): eZ\\Publish\\Core\\Search\\Legacy\\Content\\Gateway\\DoctrineDatabase->getQueryCondition(Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Query\\Criterion\\LogicalAnd), Object(eZ\\Publish\\Core\\Persistence\\Doctrine\\SelectDoctrineQuery), Array)\n#8 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Search\/Legacy\/Content\/Gateway\/DoctrineDatabase.php(97): eZ\\Publish\\Core\\Search\\Legacy\\Content\\Gateway\\DoctrineDatabase->getResultCount(Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Query\\Criterion\\LogicalAnd), Array)\n#9 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Search\/Legacy\/Content\/Gateway\/ExceptionConversion.php(63): eZ\\Publish\\Core\\Search\\Legacy\\Content\\Gateway\\DoctrineDatabase->find(Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Query\\Criterion\\LogicalAnd), 0, 10, Array, Array, true)\n#10 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Search\/Legacy\/Content\/Handler.php(167): eZ\\Publish\\Core\\Search\\Legacy\\Content\\Gateway\\ExceptionConversion->find(Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Query\\Criterion\\LogicalAnd), 0, 10, Array, Array, true)\n#11 \/var\/www\/ezp19\/app\/cache\/dev\/appDevDebugProjectContainer.php(53136): eZ\\Publish\\Core\\Search\\Legacy\\Content\\Handler->findContent(Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Query), Array)\n#12 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Repository\/SearchService.php(184): eZPublishCoreSearchLegacyContentHandler_0000000043a9389d00000000307a9ccc9ea8045671ba92d239901d6381942c5d->findContent(Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Query), Array)\n#13 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Repository\/SearchService.php(97): eZ\\Publish\\Core\\Repository\\SearchService->internalFindContentInfo(Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Query), Array, true)\n#14 \/var\/www\/ezp19\/app\/cache\/dev\/appDevDebugProjectContainer.php(41324): eZ\\Publish\\Core\\Repository\\SearchService->findContent(Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Query), Array, true)\n#15 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/SignalSlot\/SearchService.php(64): eZPublishCoreRepositorySearchService_0000000043a9365900000000307a9ccc9ea8045671ba92d239901d6381942c5d->findContent(Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Query), Array, true)\n#16 \/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Controller\/Views.php(53): eZ\\Publish\\Core\\SignalSlot\\SearchService->findContent(Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Query))\n#17 [internal function]: eZ\\Publish\\Core\\REST\\Server\\Controller\\Views->createView(Object(Symfony\\Component\\HttpFoundation\\Request))\n#18 \/var\/www\/ezp19\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php(144): call_user_func_array(Array, Array)\n#19 \/var\/www\/ezp19\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php(64): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#20 \/var\/www\/ezp19\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/DependencyInjection\/ContainerAwareHttpKernel.php(69): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#21 \/var\/www\/ezp19\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/Kernel.php(185): Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#22 \/var\/www\/ezp19\/web\/app.php(70): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#23 {main}",
              "file": "\/var\/www\/ezp19\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Doctrine\/DoctrineExpression.php",
              "line": 72
          }
      }
      

      Attachments

        Activity

          People

            adam.wojs@ibexa.co Adam Wójs
            kamil.madejski@ibexa.co Kamil Madejski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: