trying to push with the wrong macaroon return non user-friendly error

Bug #1674124 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

I used snapcraft enable-ci travis to get a macaroon for the bitcoin snap. I didn't know this macaroon was attenuated only to work with this snap, so I tried to use it to push also bitcoin-unlimited. It failed with a 403 error and the json returned from the store:

Pushing 'bitcoin-unlimited/bitcoin-unlimited_master_amd64.snap' to the store.

Received 403: '{"status": 403, "error_list": [{"message": "Permission is required: package_upload", "code": "macaroon-permission-required"}], "snap_id": "qXB7ybG8qAt0zbILzctSuWOKDUfjje8i", "title": "Macaroon missing required permission.", "permission": "package_upload", "type": "devportal:v1:macaroon-permission-required", "detail": "Permission is required: package_upload"}'

It should return a user-friendly error message instead.

Tags: bitesize store ui
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.