promql/parser: fix UTF-8 label quoting in format_query endpoint#17687
promql/parser: fix UTF-8 label quoting in format_query endpoint#17687juliusv merged 4 commits intoprometheus:mainfrom
Conversation
|
Hello @juliusv Please review it. |
|
It seems CI / fuzzing / Fuzzing (pull_request) is failing for all the PRs since yesterday! |
Indeed! Arve already mentioned it on #prometheus-dev on Slack as well. We should just ignore that check until it's fixed. |
|
@juliusv Thanks! I've simplified the buffer operations; Removed the first Please review the changes. |
|
Please rebase on main after #17695 to fix the Fuzzing CI failure. |
Signed-off-by: ADITYA TIWARI <[email protected]>
refactors binary expression formatting to reuse writeLabels() instead of maintaining separate joinLabels() function. adds comprehensive UTF-8 label tests for all expression types Signed-off-by: ADITYA TIWARI <[email protected]>
Signed-off-by: Aditya Tiwari <[email protected]>
Signed-off-by: ADITYA TIWARI <[email protected]>
|
Hello @juliusv @bboreham |
Which issue(s) does the PR fix:
Fixes #15243
Does this PR introduce a user-facing change?
The
/api/v1/format_queryendpoint was returning invalid PromQL when UTF-8 label names appeared inon(),ignoring(),group_left(),group_right(),by(), andwithout()clauses. Labels like"äää"were rendered unquoted, breaking the expression.