You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #4503
This PR fixes servicepath levels with zero length, i.e. available in initial part (1st level) of servicepath only (e.g. fiware-servicepath: //det), because servicepath levels with zero length, i.e. available in 2nd level or further level of servicepath (e.g. fiware-servicepath: /a///det), are already restricted by following code in servicePathCheck() function src/lib/rest/rest.cpp file:
if (compV[ix].c_str()[0] == 0)
{
OrionError oe(SccBadRequest, "empty component in ServicePath");
ciP->answer = oe.setStatusCodeAndSmartRender(ciP->apiVersion, &(ciP->httpStatusCode));
return 3;
}
From https://github.com/telefonicaid/fiware-orion/blob/master/doc/manuals/orion-api.md#entity-service-path
However, Orion allows creating service path with 0 length levels, eg:
The text was updated successfully, but these errors were encountered: