single-letter snaps are available in the store, but not installable

Bug #1882665 reported by Alberto Donato
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snap Store Server
Confirmed
Undecided
Unassigned
snapd
Triaged
Low
Unassigned

Bug Description

I discovered by accident typing about the "q" command, which command-not-found told me I can install via "snap install q".

Running "snap info q" doesn't return a result, though and "snap install q" also fails with

 error: cannot install "q": invalid instance name: invalid snap name: "q"

It seems different restrictions are in place (snapd doesn't suppot single-letter snaps).

Note that I'm reporting this just as I noticed the inconsistent behavior, but it's not really causing an issue for me (I was mostly just curious about that application).

Alberto Donato (ack)
description: updated
Changed in snapstore:
status: New → Confirmed
Revision history for this message
Kristian Glass (doismellburning) wrote :

Tagged in snapd following discussion with ~pedronis, as "snap info q" returning nothing seems incorrect

Revision history for this message
Paweł Stołowski (stolowski) wrote :

You are right, snapd requires at least 2 characters for snap names, this restriction has been implemented long time ago and there are explicit tests for this; so indeed it looks like restrictions in snapd and store are out of sync.

Changed in snapd:
status: New → Triaged
Revision history for this message
William Grant (wgrant) wrote :

Do we know why the check is also implemented on the client side? This seems very much like store policy that isn't valuable to check on the client, and the sort of thing that we're probably going to regret in 2030 when we want to change store policy but still have to work with old clients.

Revision history for this message
Ian Johnson (anonymouse67) wrote :

`snap download q` works apparently

Changed in snapd:
importance: Undecided → Low
Revision history for this message
Ian Johnson (anonymouse67) wrote :

And actually even installing q_5.snap locally after downloading it doesn't work.

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.