Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The system consider path as valid if the closed apostrophe is missing #75

Open
Swyatoslaw opened this issue Mar 16, 2021 · 0 comments
Open

Comments

@Swyatoslaw
Copy link

Javascript JMESPath library can allow write filter expression without closed apostrophe sign.

For example, in expression
a == 'foo d
for json object
{"a": "foo d", "b": "bar"}
the result will be true and expression can valid.

But, if we try apply it expression in Java JMESPath library, it will be thrown exception:
io.burt.jmespath.parser.ParseException: Unable to compile expression "a == 'foo d": syntax error token recognition error at: ''foo d' at position 5, syntax error mismatched input '<EOF>' expecting {'!', '(', '*', '[', '{', '[?', '@', '', RAW_STRING, JSON_CONSTANT, NAME, STRING} at position 11`
In my opinion, it is bug of Javascript JMESPath library parser, because in JMESPath documentation nowhere write about user can missed closed apostrophe sign.

Using versions:
Javascript JMESPath library: 0.15.0
Java JMESPath library: 0.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant