snapcraft can generage snaps with a name longer than 107 characters
Metadata
Current evaluation
Snapcraft still accepts overlong snap names during project validation, allowing builds that the Store later rejects; the maintainer discussed shorter limits, but global enforcement is absent.
Suggested action: keep open
Reason: The report includes the Store's exact rejection and current validate_name checks syntax, hyphens, and letters but has no length limit. The maintainer comment leaves the preferred threshold unsettled at 50 versus 35 or 40 characters, although initialization currently enforces 40 characters, so this remains a valid acknowledged bug requiring a policy-aligned validation fix.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
42
Quick Win:
22
Complexity:
27
Confidence:
90
Actionability:
72
|
keep open | Snapcraft still accepts overlong snap names during project validation, allowing builds that the Store later rejects; the maintainer discussed shorter limits, but global enforcement is absent. | |
| stealth/space-bunny-alpha |
Impact:
30
Quick Win:
26
Complexity:
10
Confidence:
97
Actionability:
95
|
close resolved | Snapcraft accepted names exceeding the store's 107-character limit; current project validation caps snap names at 40 characters, so the reported gap is resolved. | |
| qwen/qwen3.6-35b-a3b |
Impact:
40
Quick Win:
22
Complexity:
20
Confidence:
65
Actionability:
70
|
needs triage | Snapcraft allows snap names longer than 107 characters, which the Snap Store rejects. No length validation exists in the project model. | |
| qwen/qwen3.8-27b |
Impact:
25
Quick Win:
19
Staleness:
90
Complexity:
25
Confidence:
60
Support Request:
10
|
needs triage | Snapcraft only limits the generated snap file name, not the snap name itself, so it can build snaps whose names exceed the store's 107-character limit and fail at upload. Open since 2016, no labels or comments, untriaged. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
15
Confidence:
90
Support Request:
10
|
close stale | Snapcraft allows generating snap packages with names exceeding the 107-character limit enforced by the Snap Store, causing upload failures. The issue remains untriaged with no maintainer comments or labels after nearly 10 years. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
15
Confidence:
90
Support Request:
10
|
close stale | Decade-old unaddressed request to enforce a 107-character limit on snap package names, matching Snap Store constraints. No maintainer response or reproduction details provided. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
15
Confidence:
90
Support Request:
10
|
close stale | Snapcraft allows generating snap packages with names exceeding the Snap Store's 107-character limit, causing upload failures. The issue remains open with no maintainer interaction or labels after nearly a decade. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Related To:
snapcraft#6216
(confidence 90%)
Commit 254546337 updated initialization name handling; Init now rejects names over 40 characters, but shared project-model validation still has no length check.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1981205 Snapcraft produces too long instance name, instance launch fails | snapcraft (launchpad) | closed | LXC's 63-character instance-name limit blocked snapcraft pack; no fix was recorded, and the dormant report was closed as stale. | |
| #1712061 snapcraft restricts version field too much | snapcraft (launchpad) | closed | Version syntax stayed restricted. PR snapcore/snapcraft#1508 added the Store's missing 32-character limit, but requests for @, /, and spaces stalled without approval and the issue was closed. | |
| #6093 `snapcraft init` fails when the working directory's name is longer than 40 characters | snapcraft | closed | Fixed by merged PR canonical/snapcraft#6216 (commit 254546337): snapcraft init now uses the default snap name when a directory-derived name exceeds 40 characters. | |
| #1589613 Snap app names are too permissive | snapcraft (launchpad) | closed | Fixed: snapcraft PR #555 (commit bc9fac7e7) tightened snap/app name validation to match snapd, with snapd PR snapcore/snapd#1280; shipped in snapcraft 2.12 (xenial/yakkety) and verified. |