Closed Bug 870489 Opened 13 years ago Closed 12 years ago

[fireplace] Nonexistent categories should be 404

Categories

(Marketplace Graveyard :: Consumer Pages, defect, P4)

x86
macOS
defect

Tracking

(Not tracked)

VERIFIED FIXED
2013-06-20

People

(Reporter: muffinresearch, Assigned: spasovski)

References

Details

(Whiteboard: [fireplace] p=1)

Attachments

(1 file)

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.
Same thing for an app.
Blocks: 859511
Whiteboard: [fireplace]
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
We can use bug 870020 to track 404'd app detail pages.
Summary: [fireplace] non existent categories should be 404 → [fireplace] Nonexistent categories should be 404
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: nobody → dspasovski
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
Whiteboard: [fireplace] → [fireplace] p=1
Target Milestone: --- → 2013-06-20
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 → ---
-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 ago12 years ago
Resolution: --- → FIXED
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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: