Skip to content

ci(manage-es): quote URL substitution to preserve query params#1247

Open
KiaraGrouwstra wants to merge 1 commit intomainfrom
manage-es-quote-url
Open

ci(manage-es): quote URL substitution to preserve query params#1247
KiaraGrouwstra wants to merge 1 commit intomainfrom
manage-es-quote-url

Conversation

@KiaraGrouwstra
Copy link
Copy Markdown
Collaborator

Without quotes, the runtime curl command read e.g. curl -X GET https://.../foo?v&h=name,active
where bash parses the first & as a background operator: the curl process forks on ?v and the rest of the URL turns into separate shell commands (h=name,active, request_cache=true), silently dropping every query parameter past the first. Looked like a multi-parameter request from the dispatch UI but came out as a one-parameter GET on the wire.

Quoting both substitutions preserves & as part of the URL.

The effect of this may be found by comparing queries to Elastic Search before vs after this change - showing that only after will the h header filter correctly apply.

Assisted-by: Claude:claude-opus-4-7[1m]

Without quotes, the runtime curl command read e.g.
`curl -X GET https://.../foo?v&h=name,active`
where bash parses the first `&` as a background operator: the curl
process forks on `?v` and the rest of the URL turns into separate
shell commands (`h=name,active`, `request_cache=true`), silently
dropping every query parameter past the first. Looked like a multi-
parameter request from the dispatch UI but came out as a one-parameter
GET on the wire.

Quoting both substitutions preserves `&` as part of the URL.

Assisted-by: Claude:claude-opus-4-7[1m]
@KiaraGrouwstra KiaraGrouwstra requested a review from raboof April 30, 2026 20:24
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

Successfully merging this pull request may close these issues.

1 participant