Handle macaroon-authorization-required error response
Metadata
Current evaluation
Snapcraft whoami bypasses the 401 re-login wrapper and shows a generic store error for missing or expired credentials; the open report remains valid and is linked to an unresolved craft-store bug.
Suggested action: keep open
Reason: The report provides an exact 401 macaroon-authorization-required response and clear reproduction using snapcraft whoami. Current StoreClientCLI.request() handles 401 reauthentication, but whoami() calls store_client.whoami() directly and bypasses that wrapper; craft-store#97 is also open for the same expired-macaroon behavior.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
46
Quick Win:
25
Complexity:
38
Confidence:
93
Actionability:
88
|
keep open | Snapcraft whoami bypasses the 401 re-login wrapper and shows a generic store error for missing or expired credentials; the open report remains valid and is linked to an unresolved craft-store bug. | |
| stealth/space-bunny-alpha |
Impact:
42
Quick Win:
22
Complexity:
28
Confidence:
78
Actionability:
73
|
needs triage | The 401 wrapper prompts reauthentication for normal requests, but whoami bypasses it and may expose raw macaroon-authorization-required errors; related reports remain open. | |
| stealth/space-bunny-alpha |
Impact:
42
Quick Win:
22
Complexity:
37
Confidence:
68
Actionability:
84
|
keep open | Snapcraft 4.8 whoami returns a generic 401 store error instead of prompting for re-authentication when credentials are missing or expired; the report remains open. | |
| qwen/qwen3.8-27b |
Impact:
35
Quick Win:
21
Staleness:
95
Complexity:
40
Confidence:
65
Support Request:
10
|
needs triage | snapcraft whoami shows a generic 'Store Error: whoami failed.' instead of prompting re-authentication when credentials are missing/expired (401 macaroon-authorization-required). Open since 2021, zero comments, no maintainer activity or labels. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
35
Confidence:
85
Support Request:
10
|
needs triage | snapcraft whoami fails with a generic error instead of prompting re-authentication when credentials are missing or expired. Open for over 5 years with no maintainer response or triage. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
25
Confidence:
85
Support Request:
15
|
close stale | Unhandled macaroon-authorization-required API error causes generic failure instead of re-auth prompt. Issue is over 5 years old with no maintainer response. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
10
|
close stale | Snapcraft fails with a generic error when credentials are missing or expired instead of prompting for re-authentication. Untriaged, inactive for over 5 years. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Related To:
craft-store#97
(confidence 96%)
Covers the same confusing expired-macaroon and macaroon-authorization-required responses; it was reproduced and remains unresolved.
-
Related To:
snapcraft (launchpad)#1834469
(confidence 94%)
Addresses invalid-macaroon messaging and notes that newer 401 paths are actionable while legacy behavior remains unresolved.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1834469 error messaging for invalid macaroon could be improved | snapcraft (launchpad) | open | Expired legacy credentials can still yield a raw macaroon error or block login; newer 401s are actionable, but the legacy path and upstream craft-store report remain unresolved. | |
| #1856502 Obscure error message from snapcraft release when not logged in correctly | snapcraft (launchpad) | open | Snapcraft exposed a raw 401 macaroon error from release; commit 8a854a8de (#3907) now gives invalid legacy credentials an actionable login or export-login resolution. | |
| #1622635 Cryptic error message for store access failure. | snapcraft (launchpad) | closed | Request for a clearer 401 error suggesting 'snapcraft login' was closed as unnecessary after PR canonical/snapcraft#903 (commit 603948e1d) removed the login requirement for Store part downloads, fixing LP #1606903. | |
| #4226 snapcraft export-login ignores expires parameter | snapcraft | closed | Closed as stale without a Snapcraft fix. Maintainers attributed the short-lived macaroon to store-side refresh handling and later asked reporters to open a new ticket if the problem persisted. |