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

eZFind: incorrect error handling in elevate configuration

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 5.3.3, 5.4.0
    • Component/s: None
    • Labels:
      None

      Description

      If a solr error is thrown during ezfind's elevate configuration, this will result in a PHP fatal error:

      PHP Fatal error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in ... 

      The problem is that the "error" response is an array (json object), and a new exception is being thrown with this variable.

      Sample error response:
      http://localhost:8983/solr/select/?wt=json&q=*:*&indent=on&df=aa&fq=aa

      {
        "responseHeader":{
          "status":400,
          "QTime":2,
          "params":{
            "df":"a",
            "indent":"on",
            "q":"*:*",
            "wt":"json",
            "fq":"a"}},
        "error":{
          "msg":"undefined field aa",
          "code":400}}
      

        Issue Links

          Activity

          Hide
          Joao Inacio (Inactive) added a comment -
          Show
          Joao Inacio (Inactive) added a comment - PR for possible fix: https://github.com/ezsystems/ezfind/pull/186
          Show
          Joao Inacio (Inactive) added a comment - Merged in ezfind/master @ https://github.com/ezsystems/ezfind/commit/f30cd2e4d4aa65a4ef57b549f1bd6199262beb6d
          Hide
          Ricardo Correia (Inactive) added a comment -

          QA approved.

          Show
          Ricardo Correia (Inactive) added a comment - QA approved.

            People

            • Assignee:
              Unassigned
              Reporter:
              Joao Inacio (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: