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

Low level error exposed on rest api

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 2.5.11
    • Fix Version/s: None
    • Component/s: Platform > REST API v2
    • Labels:
      None
    • Environment:

      Description

      On Posting following request to /api/ezp/V2/user/sessions

      I get following Response.

      {
          "ErrorMessage": {
              "_media-type": "application\/vnd.ez.api.ErrorMessage+json",
              "errorCode": 500,
              "errorMessage": "Internal Server Error",
              "errorDescription": "Type error: Argument 1 passed to eZ\\Publish\\Core\\REST\\Common\\Input\\ParsingDispatcher::parse() must be of the type array, string given, called in \/opt\/arithnea\/src\/ezplatform-ee-2.5-lts-arithnea\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Input\/Dispatcher.php on line 113"
      }
      
      
      
      
        
      

      Expected exception:

      { "ErrorMessage": { "_media-type": "application\/vnd.ez.api.ErrorMessage+json", 
      "errorCode": 400, 
      "errorMessage": "Bad Request",
      "errorDescription": "Please provide username and password in json body"
      }
      }
      

       

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            pebo Peter Böthig
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: