Try our conversational search powered by Generative AI!

ServiceAPI: Should check validation for organization ID

Found in

EPiServer.ServiceApi 5.4.0

Fixed in

EPiServer.ServiceApi 5.4.2

(Or a related package)

Created

Sep 20, 2019

Updated

Mar 27, 2020

State

Closed, Fixed and tested


Description

Steps to reproduce

  1. Get/put/delete organization by wrong GUID.

Expected:
Should return a 400 bad request error with the response body below instead of 404 not found.
{
"Message": "The request is invalid.",
"ModelState":

{ "organizationId": [ "The value '1243242' is not valid for Guid." ] }

}
Actual:
Returns a 404 not found error.