Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.1 RC1 (Lovelace), 2.6.14 (Ingalls SR14), 3.0.9 (Kay SR9)
-
Fix Version/s: 3.1 RC2 (Lovelace), 3.0.10 (Kay SR10), 2.6.15 (Ingalls SR15)
-
Component/s: None
-
Labels:None
-
Sprint:Lovelace RC1
Description
When applying a json/patch operation to replace an attribute of an entity in an indexed collection through Spring Data Rest, the operation fails if the collection element is at index 10 or greater.
The issue appears to arise in method
SpelPath.TypedSpelPath.verifyPath(String path, Class<?> type)
and it appears to be in this part of the path source filtering expression:
... .filter(it -> !it.matches("\\d")) // no digits ...
The fix that seems to resolve the issue is:
... .filter(it -> !it.matches("\\d+")) // no digits ...