elementary os-release ID crashes snapcraft

Bug #1719336 reported by Cody Garver
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
High
Kyle Fazzari
elementary OS
New
Undecided
Unassigned

Bug Description

The ID in the content of /etc/os-release crashes snapcraft:

NAME="elementary OS"
VERSION="0.4.1 Loki"
ID="elementary"
ID_LIKE=ubuntu
PRETTY_NAME="elementary OS 0.4.1 Loki"
VERSION_ID="0.4.1"
HOME_URL="http://elementary.io/"
SUPPORT_URL="http://elementary.io/support/"
BUG_REPORT_URL="https://github.com/elementary/"
VERSION_CODENAME=loki
UBUNTU_CODENAME=loki

Cody Garver (codygarver)
summary: - elementary ID crashes snapcraft
+ elementary os-release ID crashes snapcraft
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

The ID is invalid according to the specification in os-release(5)

To quote the manual page:

       ID=
           A lower-case string (no spaces or other characters outside of 0–9,
           a–z, ".", "_" and "-") identifying the operating system, excluding
           any version information and suitable for processing by scripts or
           usage in generated filenames. If not set, defaults to "ID=linux".
           Example: "ID=fedora" or "ID=debian".

You cannot use spaces in this field.

Changed in snapcraft:
status: New → Triaged
Revision history for this message
Cody Garver (codygarver) wrote :

Sorry, I pasted the os-release that actually works. WITHOUT the space it crashes.

The backstory is it was invalid originally, you guys fixed it on your end and informed us it was invalid. So we changed it to become valid and that broke your fix.

Sorry for the confusion, I will update the bug.

description: updated
Revision history for this message
Kyle Fazzari (kyrofa) wrote :
Changed in snapcraft:
status: Triaged → In Progress
assignee: nobody → Kyle Fazzari (kyrofa)
importance: Undecided → High
Kyle Fazzari (kyrofa)
Changed in snapcraft:
status: In Progress → Fix Committed
milestone: none → 2.35
Changed in snapcraft:
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.