Skip to content

Runtime expressions matched via Regex expressions are not properly unescaped #179

New issue

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

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

Already on GitHub? # to your account

Closed
cdavernas opened this issue Aug 18, 2022 · 0 comments
Closed
Assignees
Labels
app: runner Concerns the Runner priority: high Indicates a high priority issue type: bug Something isn't working weight: 2 An issue with a low development impact
Milestone

Comments

@cdavernas
Copy link
Member

What happened:

Runtime expressions matched via Regex expressions are not properly unescaped.

As a matter of fact, when doing Regex-based processing of JSON to extract runtime expressions, results are not unescaped, resulting in a bad format exception in jq.

What you expected to happen:

Runtime expression to be properly unescaped.

How to reproduce it:

Use a runtime expression with escaped quotes as arguments of an OpenAPI operation, such as:

{
  "name": "EscapingTest",
  "functionRef":{
    "refName": "testOperation",
   "arguments":{
      "uniquePetName": "${ .pet.name + \"_\" + .pet.id }"
    }
  }
}
@cdavernas cdavernas added type: bug Something isn't working priority: high Indicates a high priority issue weight: 2 An issue with a low development impact app: runner Concerns the Runner labels Aug 18, 2022
@cdavernas cdavernas added this to the 0.2.0 milestone Aug 18, 2022
@cdavernas cdavernas self-assigned this Aug 18, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
app: runner Concerns the Runner priority: high Indicates a high priority issue type: bug Something isn't working weight: 2 An issue with a low development impact
Projects
None yet
Development

No branches or pull requests

1 participant