Closed gravesee closed 2 years ago
Hello. You need to escape other .
as well:
yaml example:
sql:
query: select {{params.\.partOf\.0\.id}}
engine: sql
json example:
"sql": {
"query": "select {{params.\\.partOf\\.0\\.id}}"
},
"engine": "sql",
If escaping is done properly, this works as expected on :edge
Describe the bug Trying to use a
..partOf.0.id
parameter in a request. The access policy does not interpolate the parameter value when using the sql engine -- it returns null.Severity Major
Steps to reproduce the behavior:
.partOf.0.id
parameter and__debug=policy
:curl "http://localhost:8080/?.partOf.0.id=whatever&__debug=policy"
From the request property in debug response:
From the evaluated policy in debug response:
Expected behavior Policy should correctly interpolate the value from the params property of the request.
Versions: