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
bug: JsonPathParserError in TimestampPath when any path fragments begin with a number #10694
Comments
I am seeing a similar bug when my JSON path starts with a symbol. The Input: {
"@class":"com.company.name.InputData",
"id":"123abc",
"sourceUserId":"101",
"inputFileS3Keys": [ "00000000-1111-2222-3333-444444444" ]
} Error:
|
Thank you for compiling this bug report! The issue appears to be related to some limitations to the JsonPath library that the StepFunctions interpreter relies on https://github.com/h2non/jsonpath-ng. |
Is there an existing issue for this?
Current Behavior
Hi again,
It looks like the path parser cannot parse JSON inputs when any path fragments begin with a number.
Given the stepfunction example below, starting an execution gives the following error:
Expected Behavior
JSON path fragments that begin with numbers are still treated as strings and path traversal works as expected, just like in the production AWS service or in AWS' own stepfunctions-local.
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
How are you starting localstack (e.g.,
bin/localstack
command, arguments, ordocker-compose.yml
)Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
I inlined the definition in the example but here it is for better readability:
Input specified:
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: