Details
-
Bug
-
Resolution: Fixed
-
High
-
None
-
None
Description
The Location depth sort clause seems to not be usable in the REST Views. When using it, the REST is a 400 Bad Request
Steps to reproduce:
Execute the following REST request (with a correct Session Id and CSRF Token):
curl 'http://ez.loc/api/ezp/v2/views' -H 'X-CSRF-Token: C7JKgcz4V2eyOXMcbjyRk4WB78JI6e0WvOQeVhFfPMQ' \ -H 'Cookie: privacyCookieAccepted=1; eZSESSID98defd6ee70dfb1dea416cecdf391f58=fdvvnhp2egfhlacc7pmebghos6' \ -H 'Content-Type: application/vnd.ez.api.ViewInput+json; version=1.1' \ -H 'Accept: application/vnd.ez.api.View+json; version=1.1' \ --data-binary '{"ViewInput":{"identifier":"subitems-2","public":false,"LocationQuery":{"Criteria":{"ParentLocationIdCriterion":2},"FacetBuilders":{},"SortClauses":{"LocationDepth":"ascending"},"offset":0,"limit":10}}}'