I can only refresh but not download, it seems a bug to me.
Before login, a user cannot download or refresh by specifying a revision
$ snap info dmidecode-tool
name: dmidecode-tool
summary: SMBIOS/DMI table decoder
publisher: Rex Tsai (chihchun)
contact: https://github.com/chihchun/dmidecode-snap/issues
license: GPL-2.0+
description: |
Dmidecode reports information about the system's hardware as described in the
system BIOS according to the SMBIOS/DMI standard.
.
This information typically includes system manufacturer, model name, serial
number, BIOS version, asset tag as well as a lot of other details of varying
level of interest and reliability depending on the manufacturer. This will
often include usage status for the CPU sockets, expansion slots (e.g. AGP, PCI,
ISA) and memory module slots, and the list of I/O ports (e.g. serial, parallel,
USB).
.
Beware that DMI data have proven to be too unreliable to be blindly trusted.
Dmidecode does not scan the hardware, it only reports what the BIOS told it to.
snap-id: AjauNTwGxi02ma3W2S7eq0xlCi7gEgge
channels:
stable: 3.0 2018-05-15 (3) 77kB -
candidate: ↑
beta: ↑
edge: 3.0 2018-12-24 (15) 61kB -
$ snap install dmidecode-tool
dmidecode-tool 3.0 from Rex Tsai (chihchun) installed
$ snap whoami
email: -
$ sudo snap refresh --revision=4 dmidecode-tool
error: cannot refresh "dmidecode-tool": Access by specifying a revision is not allowed for this
Snap.
$ sudo snap download --revision=4 dmidecode-tool
Fetching snap "dmidecode-tool"
error: cannot download snap "dmidecode-tool": Access by specifying a revision is not allowed for this Snap.
But after I login, I can only refresh but not download. (refresh will download the snap)
$ snap whoami
email: rex.cc.tsai@gmail.com
$ sudo snap download --revision=4 dmidecode-tool
Fetching snap "dmidecode-tool"
error: cannot download snap "dmidecode-tool": Access by specifying a revision is not allowed for this Snap.
$ sudo snap refresh --revision=4 dmidecode-tool
dmidecode-tool 3.0 from Rex Tsai (chihchun) refreshed
Is this an expected behavior?