- changed status to open
Cannot use negative number in search query
When I try to filter using query like:
http://localhost:8080/weather/search?weather.temperature=gt(-3)
I get IllegalArgumentException: Invalid numeric value
Every time I use negative number I get such exception
Sample solution could be:
In NumberPathExpressionProviderImpl class use (instead of StringUtils.isNumeric) NumberUtils.isCreatable or NumberUtils.isParsable
BTW Great library - keep on doing such nice thing!
Comments (4)
-
repo owner -
repo owner -
assigned issue to
-
assigned issue to
-
repo owner - changed status to resolved
Thanks for reporting the issue, it is fixed with this commit. The version 5.0.0-SNAPSHOT version contains the fix (please refer to read me to use snapshot repository). The next release version isn't currently planned due to lack of new changes but I will release a hot fix release version for this in a week or so.
-
Did you release a hot fixed version? This bug is bothering me, too, on floating point numbers.
Can’t use Snapshots as they are forbidden in our Nexus.
- Log in to comment
opening up for investigation