-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
2.0
-
None
Using the PUT for properties endpoint never works as the value array is always empty on the server side.
Take the example:
curl http://localhost:8080/magnoliaAuthor/.rest/properties/v1/website/travel \ -H "Content-Type: application/json" \ -X PUT -i \ --user superuser:superuser \ --data \ '{ "name": "windowTitle", "value": [ "Magnolia CMS - Travel Home" ] }'
When I debug the call I see that the bad request comes from:
if (!multiple && valueStrings.size() != 1) { return Response.status(Response.Status.BAD_REQUEST).build(); }
valueStrings is always of size 0.
Acceptance criteria
- depends upon
-
MGNLREST-97 Implement exception handling for rest endpoint
- Closed
- is depended upon by
-
DOCU-1205 Add examples for properties endpoint PUT/POST
- Closed
- is related to
-
DOCU-1185 properties endpoint page
- Closed