Can set garbage for core experimental.layouts

Bug #1756317 reported by Gerry Boland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Medium
Unassigned

Bug Description

I accidentally ran

sudo snap set core experimental.layouts=rue

instead of using "true" and the command succeeded. I only noticed the error when installing a snap using layouts:

sudo snap try ./prime --devmode
error: cannot try /home/gerry/dev/snaps/xeyes-snap/prime: internal error: cannot unmarshal snap
       "core" option "experimental.layouts" into *bool: json: cannot unmarshal string into Go value
       of type bool, json: "rue"

The value should be checked in the configure hook.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This is now fixed in master.

Changed in snapd:
status: New → Fix Committed
importance: Undecided → Medium
Changed in snapd:
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.