OCI recipe ARG variables break quoting

Bug #1902007 reported by Barry Price
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpad-buildd
Fix Released
High
Colin Watson

Bug Description

My recipe requires a variable to be given a value consisting of several space-separated values.

But setting a "Build-time ARG variable" with e.g.

FOO='bar baz bat'

is actually passed through as:

'--build-arg=FOO='"'"''"'"'"'"'"'"'"'"'bar baz bat'"'"'"'"'"'"'"'"''"'"''

Using no quotes at all is less broken, but still doesn't work:

FOO=bar baz bat

'--build-arg=FOO='"'"'bar baz bat'"'"''

I tried double quotes too for the sake of completion, but no joy:

FOO="bar baz bat"

'--build-arg=FOO='"'"'"bar baz bat"'"'"''

Ideally all of the above would do what was intended, but if quotes of some kind are going to be required, the exact syntax should probably be made explicit in the UI.

Related branches

Revision history for this message
Colin Watson (cjwatson) wrote :

No quoting is expected or required at the web UI side. I think this is just some bit of launchpad-buildd applying overquoting.

affects: launchpad → launchpad-buildd
Colin Watson (cjwatson)
Changed in launchpad-buildd:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Colin Watson (cjwatson)
Colin Watson (cjwatson)
Changed in launchpad-buildd:
status: In Progress → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote :

Fixed in launchpad-buildd 194, which was deployed to production a while ago - we apparently forgot to close this at the time.

Changed in launchpad-buildd:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.