unable to add unset environment variables via <checkbox-snap>.configure

Bug #1914163 reported by Kristin Chuang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Core
Fix Released
Medium
Jonathan Cave
Checkbox Support Library
Fix Released
Medium
Jonathan Cave

Bug Description

[Steps]
On any system with checkbox-snappy installed:
1. Check what environment variables are currently set:
     $ sudo checkbox-snappy.configure -l
2. Try setting a not-yet-set variable, e.g. "TEST_SNAP":
     $ sudo checkbox-snappy.configure TEST_SNAP=foo
3. Check if the changes in step 2 is saved:
     $ sudo checkbox-snappy.configure -l
4. Launch the actual configuration file to see if the changes made in step 2 is saved:
     $ cat /writable/system-data/var/snap/checkbox-<project-name>/current/checkbox.conf

[Expected]
Changes in step 2 are reflected in both step 3 and 4

[Actual]
Changes in step 2 are not reflected in either step 3 or 4

[Workaround]
The only way to workaround/solve this problem is to write the new settings directly into the checkbox.conf configuration file

Related branches

Revision history for this message
Kristin Chuang (kristinchuang) wrote :

Two possible solutions I'm seeing:

1. Add the feature of allowing checkbox-snappy.configure to add unset variables

2. List all variables that could be used inside checkbox.conf from the very beginning.

description: updated
Jonathan Cave (jocave)
Changed in checkbox-ng:
importance: Undecided → Medium
assignee: nobody → Jonathan Cave (jocave)
status: New → In Progress
Jonathan Cave (jocave)
Changed in checkbox-ng:
status: In Progress → Fix Committed
milestone: none → 1.14.0
Jonathan Cave (jocave)
Changed in checkbox-ng:
milestone: 1.14.0 → none
affects: checkbox-ng → checkbox-support
Jonathan Cave (jocave)
Changed in checkbox-core-snap:
milestone: none → 22
Changed in checkbox-support:
milestone: none → 0.51.0
Changed in checkbox-core-snap:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Jonathan Cave (jocave)
Changed in checkbox-support:
status: Fix Committed → Fix Released
Jonathan Cave (jocave)
Changed in checkbox-core-snap:
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.