environment variables containing | cause errors
Categories
(Taskcluster :: Workers, defect)
Tracking
(Not tracked)
People
(Reporter: dustin, Unassigned)
References
Details
Attachments
(1 file)
https://taskcluster-web.netlify.com/tasks/PPyVZMKHSCS0O8BvvD7WZg
has
Env: {
..
"TRY_COMMIT_MSG": "Fuzzy query=android | linux | windows jittest\n\nPushed via `mach try fuzzy`",
}
and causes
'linux' is not recognized as an internal or external command,
operable program or batch file.
I think because it's not escaped in https://github.com/taskcluster/generic-worker/blob/ef584fdea9b9903dc1bb1e3e78b6233e5ca8f010/plat_windows.go#L309
Comment 1•7 years ago
|
||
This breaks mach try fuzzy as | is a common operator in its syntax.
I think this is a fairly recent regression, just based on the fact that I regularly use fuzzy and haven't run into this until yesterday.
| Reporter | ||
Comment 2•7 years ago
|
||
It was a regression in how we handle commit messages in-tree (bug 1525421). That just happened to tickle this bug in generic-worker.
| Assignee | ||
Updated•7 years ago
|
Comment 3•7 years ago
|
||
Ouch. Do you happen to know if this is only a problem on Windows?
| Reporter | ||
Comment 4•7 years ago
|
||
I don't recall for sure, no, but given the link to plat_windows.go in comment 0 and given that generic-worker doesn't do any escaping or other handling of env var values on POSIX, I'd expect so.
Comment 5•6 years ago
|
||
Updated•6 years ago
|
Comment 6•5 years ago
•
|
||
Looks like I forgot to update this bug when it landed.
Comment 7•5 years ago
|
||
Description
•