Closed
Bug 1391294
Opened 7 years ago
Closed 7 years ago
return 404s instead of empty xml in public api
Categories
(Release Engineering Graveyard :: Applications: Balrog (backend), enhancement, P3)
Release Engineering Graveyard
Applications: Balrog (backend)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bhearsum, Assigned: asilva, Mentored)
Details
(Whiteboard: [lang=python][ready])
Because the public api lives in the same wsgi app as app updates, it inherited the behaviour of returning an empty xml file. This is really surprising and bad behaviour for the API - we should fix it. I think we can tweak https://github.com/mozilla/balrog/blob/8074b852845ae79e2cc81f1e90ab1a1191c11835/auslib/web/public/base.py#L62 to only return the empty XML if the path starts with "update" (and return the error otherwise).
Reporter | ||
Comment 1•7 years ago
|
||
Allan is working on this in https://github.com/mozilla/balrog/pull/373.
Assignee: nobody → allan.tavares
Status: NEW → ASSIGNED
Comment 2•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/balrog
https://github.com/mozilla/balrog/commit/dfb5c1b0b4d8229129f8a608ca0c2b4882ba5078
bug 1391294: Return 404 for non-update endpoints (#373). r=bhearsum
Reporter | ||
Comment 3•7 years ago
|
||
Deployed to production yesterday, thanks Allan!
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Product: Release Engineering → Release Engineering Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•