Skip to content

--attrs Doesn't properly handle escaping commas #153

@BenB196

Description

@BenB196

When making an external web request, You can set http.url as an attribute to the request. However, the spec states that it should be the full request. The issue is, a URL can look like: https://example.com?a=b,c=d. If you were to pass this via --attrs "http.url=https://example.com?a=b,c=d", the values would be split on the comma, resulting in:

http.url=https://example.com?a=b & c=d

Attempting to escape the comma doesn't seem to work, I tried:

  • --attrs "http.url=https://example.com?a=b\,c=d"
  • --attrs "http.url=https://example.com?a=b\\,c=d"
  • --attrs "http.url=https://example.com?a=b\\\,c=d"

All of which resulted in the value still being split on the comma

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions