Closed
Bug 870489
Opened 13 years ago
Closed 12 years ago
[fireplace] Nonexistent categories should be 404
Categories
(Marketplace Graveyard :: Consumer Pages, defect, P4)
Tracking
(Not tracked)
VERIFIED
FIXED
2013-06-20
People
(Reporter: muffinresearch, Assigned: spasovski)
References
Details
(Whiteboard: [fireplace] p=1)
Attachments
(1 file)
|
34.73 KB,
image/png
|
Details |
STR:
* Go to a random non-existent category e.g. https://marketplace-altdev.allizom.org/category/anything
What happens:
"No apps in this category, try again later"
What should happen:
This should be a 404 instead.
Updated•13 years ago
|
Whiteboard: [fireplace]
Comment 2•13 years ago
|
||
For categories, we can intelligently show an error (`response` is set, even in {% except %} blocks).
For apps, I'm still trying to figure out a clean way of doing this. Suggestions are welcome. The problem is that we don't know that the app doesn't exist until after we've set up the page, fired off at least two requests, and gotten one back as a 404.
Priority: -- → P4
Comment 3•13 years ago
|
||
We can use bug 870020 to track 404'd app detail pages.
Updated•13 years ago
|
Summary: [fireplace] non existent categories should be 404 → [fireplace] Nonexistent categories should be 404
Comment 4•12 years ago
|
||
Davor: Can you wire up your {% except %} magic for categories as well? Just have a nice message that says something like "This category doesn't exist."
I'm not sure if the response code is going to be sufficient (I'm too lazy to look what it is). If not, we can file an API bug to have them return a more expressive code.
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → dspasovski
| Assignee | ||
Comment 5•12 years ago
|
||
The following will address the issue above but I'll file a bug because a missing category currently returns a 400 instead of 404.
https://github.com/mozilla/fireplace/commit/cb61b10
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Whiteboard: [fireplace] → [fireplace] p=1
Target Milestone: --- → 2013-06-20
Comment 6•12 years ago
|
||
Issue is still reproducing in https://marketplace-altdev.allizom.org/ on FF26 (Win 7)
Please see screencast http://screencast.com/t/4B81zbiTxKU
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 7•12 years ago
|
||
-altdev is like three months out of date. It works on -dev and in prod:
https://marketplace-dev.allizom.org/category/anything
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Comment 8•12 years ago
|
||
Sorry, I thought I had -dev opened.
Verified as fixed in https://marketplace-dev.allizom.org/ on FF26 (Win 7).
Attaching postfix screenshot.
Closing bug.
Status: RESOLVED → VERIFIED
Comment 9•12 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•