Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.0.7 (Kay SR7), 3.1 RC1 (Lovelace), 2.6.14 (Ingalls SR14)
-
Fix Version/s: 3.1 RC2 (Lovelace), 3.0.10 (Kay SR10), 2.6.15 (Ingalls SR15)
-
Component/s: Repositories
-
Labels:None
Description
If an entity field is marked read-only, sorting does not work.
For example:
public class User { ... @JsonProperty(access = JsonProperty.Access.READ_ONLY) private String name; }
then api call
.../api/users?sort=name,desc
does not sort by name.
Removing the annotation makes sorting work again.
This problem has also been mentioned in a comment under DATAREST-976, but with an embedded property. It happens for non-embedded properties as well.