snap ack doesn't indicate which assertions are good or bad

Bug #1633230 reported by Ryan Harper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Medium
Unassigned
snapd (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

1. % lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04

2. % apt-cache policy snapd
snapd:
  Installed: 2.16
  Candidate: 2.16
  Version table:
 *** 2.16 100
        100 /var/lib/dpkg/status
     2.15.2ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
     2.0.2 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

3. snap ack <file with list of assertions, one with an error>

This should ack the assertions that are valid, and indicate which one of the
assertions was invalid; it's also unclear if any of the assertions that were
valid were imported or not since there's not snap known --list output.

One can manually snap known <assertion type> but it's not very friendly

4. snap ack exits with a failure message but without enough information to
understand which assertion failed if the file includes multiple assertions
of the same type.

% snap download hello
% use $EDITOR to modify hello_20.snap.assertions somewhere in the middle (change a byte in the base64 encoded values)
% sudo snap ack assertions
error: cannot assert: assert failed: cannot add some assertions to the system database:
 - cannot decode signature: illegal base64 data at input byte 718

Michael Vogt (mvo)
Changed in snapd (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in snappy:
status: New → Triaged
importance: Undecided → Medium
Michael Vogt (mvo)
affects: snappy → snapd
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.