removeCopyNotification errors are all reported as ServerErrors

Bug #1993523 reported by Andy Whitcroft
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
In Progress
Low
Andy Whitcroft

Bug Description

removeCopyNotification demands a job_id. Issues related to the supplied job_id are always reported as ServerErrors. An invalid job_id is reported a ServerError triggered by an AttributeError. An already acknowledged job_id is reported as a ServerErrror triggered by an AssertionError.

Tags: api lp-soyuz

Related branches

Revision history for this message
Andy Whitcroft (apw) wrote :

Proposing the attached branch as fixes for this. This returns NotFound for job_ids which do not exist and Gone for job_ids we have already acknowledged.

Note for reviewers: I have very scant understanding of which errors are correctly mapped to client return codes and which are valid for same so do check I am throwing sane exceptions there.

Colin Watson (cjwatson)
tags: added: api lp-soyuz
Changed in launchpad:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Andy Whitcroft (apw)
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.