Allowable characters in some section of gadget.yaml
Steve Langasek
steve.langasek at canonical.com
Fri Feb 3 18:06:10 UTC 2017
On Fri, Feb 03, 2017 at 12:39:07PM -0500, Barry Warsaw wrote:
> Over in LP: #1661515, a bug describes an ubuntu-image parsing error in the
> defaults section of a gadget.yaml:
> https://bugs.launchpad.net/ubuntu-image/+bug/1661515
> The spec does not define what is allowed in the defaults section:
> https://github.com/snapcore/snapd/wiki/Gadget-snap#gadget.yaml
> The current ubuntu-image code assumes defaults can contain only a-zA-Z0-9
> for the <snap id> and the same plus dashes for the <key>. There is no
> restriction on the <value>.
> The bug happens because the <key> has a dot in it. The fix is easy, but leads
> to questions hopefully Gustavo or someone else can authoritatively answer.
> What characters should be allowed for the <snap id>, <key>, and <value>
> values of the `defaults:` section?
AIUI ubuntu-image will never consume these fields anyway, they're only for
snapd's use. Is it better to future-proof ubuntu-image by making it
maximally permissive on these fields? snapd parses the gadget.yaml before
it ever returns it to ubuntu-image, so it's not as if ubuntu-image being
strict helps us fail early.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.snapcraft.io/archives/devices/attachments/20170203/79408f4e/attachment.pgp>
More information about the Devices
mailing list