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

eZFind: incorrect error handling in elevate configuration

    XMLWordPrintable

Details

    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}}
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: