Using token from `snapcraft export-login` as environment auth results in `craft_store.errors.CredentialsNotParseable`
Metadata
Current evaluation
u1-macaroon tokens from `snapcraft export-login` fail with a generic CredentialsNotParseable when used via StoreClient; reporter misused StoreClient (needs UbuntuOneStoreClient). Maintainer converted it to a wishlist item for a clearer error message based on the 't' field.
Suggested action: keep open
Reason: The reporter confirmed the root cause ("I realized I need to use the `UbuntuOneStoreClient` instead of `StoreClient`") and lengau explicitly said "I'm going to reopen this as a wishlist item because we do have a way to make a nicer error message by looking at the value of `t` in the macaroon dictionary." The current code in craft_store/creds.py confirms the gap: unmarshal_candid_credentials() treats any dict with a 't' key as case (1)/(4) and raises a generic "Expected valid Candid credentials" without inspecting whether 't' is 'u1-macaroon'. The change is small and unit-testable (tests/unit/test_creds.py::test_mixed_creds already covers the cross-type case and would just need a message assertion), so it stays open as a valid, maintainer-acknowledged enhancement. Inactivity of ~17 months is not itself grounds for closing.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
27
Quick Win:
16
Complexity:
22
Confidence:
84
Actionability:
74
|
keep open | u1-macaroon tokens from `snapcraft export-login` fail with a generic CredentialsNotParseable when used via StoreClient; reporter misused StoreClient (needs UbuntuOneStoreClient). Maintainer converted it to a wishlist item for a clearer error message based on the 't' field. | |
| qwen/qwen3.6-35b-a3b |
Impact:
25
Quick Win:
14
Complexity:
25
Confidence:
75
Actionability:
75
|
keep open | Reporter used wrong client (StoreClient vs UbuntuOneStoreClient) for u1-macaroon tokens; maintainer reopened as wishlist to improve error message when token type 't' is 'u1-macaroon' instead of 'macaroon'. | |
| qwen/qwen3.8-27b |
Impact:
25
Quick Win:
19
Staleness:
55
Complexity:
25
Confidence:
80
Support Request:
65
|
keep open | User used wrong client class (StoreClient instead of UbuntuOneStoreClient) for u1-macaroon credentials, self-resolved. Maintainer re-scoped as wishlist to improve the CredentialsNotParseable error message by inspecting the token type field. Not yet implemented in current code. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
15
Confidence:
90
Support Request:
5
|
keep open | User got CredentialsNotParseable when using snapcraft export-login token with StoreClient. They should use UbuntuOneStoreClient. Maintainer reopened as a wishlist to improve error messaging based on the token type field. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
20
Confidence:
90
Support Request:
20
|
keep open | Maintainer reopened as a wishlist item to improve error messaging when users pass Ubuntu One credentials to the standard StoreClient. Awaiting implementation of a clearer validation message. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft (launchpad)#1834469
(confidence 40%)
Semantic search surfaced an open snapcraft bug 'error messaging for invalid macaroon could be improved' with a similar goal of clearer credential/macaroon errors; same problem space but no explicit cross-reference in the issue.
Related issues
No related issues found above the similarity threshold.