Suppress the traceback unless --debug is given
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Image |
Fix Released
|
High
|
Barry Warsaw |
Bug Description
Providing a model assertion which does have a line break between content and signature causes a uncought exception:
simon@nirvana ~/Work/
error: cannot decode model assertion "pc.model": assertion content/signature separator not found
COMMAND FAILED: snap prepare-image --channel=edge pc.model /tmp/tmp4x95i_
Traceback (most recent call last):
File "/snap/
step()
File "/snap/
snap(
File "/snap/
run(cmd, stdout=None, stderr=None)
File "/snap/
sys.
TypeError: write() argument must be str, not None
Crash in state machine
Traceback (most recent call last):
File "/snap/
list(
File "/snap/
step()
File "/snap/
snap(
File "/snap/
run(cmd, stdout=None, stderr=None)
File "/snap/
sys.
TypeError: write() argument must be str, not None
simon@nirvana ~/Work/
type: model
authority-id: canonical
series: 16
brand-id: canonical
model: pc
architecture: amd64
gadget: pc
kernel: pc-kernel
timestamp: 2016-08-
sign-key-sha3-384: 9tydnLa6MTJ-
AcLBXAQAAQoABgU
KJlWOlcJ39M7is/
f3Wo26USAE32ewj
9d0BpJzr5y8wK0y
VJ8lNtfxQSWi+
8EaGOsMZm7c85BX
r4Pahf/
cUb5A4zz3IlBn/
GmwRQ12Ix54YGJr
+RFartQL+
After adding the missing line break everything works as expected.
ubuntu-image version:
simon@nirvana ~/Work/
Name Version Rev Developer Notes
ubuntu-image 0.5+mvo6 13 canonical devmode
Expectation: ubuntu-image should just show a error message and not report a uncought exception.
Changed in ubuntu-image: | |
milestone: | none → 0.11 |
Changed in ubuntu-image: | |
status: | Triaged → In Progress |
summary: |
- Uncaught exception for invalid model assertion file + Suppress the traceback unless --debug is given |
Changed in ubuntu-image: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-image: | |
status: | Fix Committed → Fix Released |
Specific instance of the more general problem of bug #1617421