Closed
Bug 282793
Opened 20 years ago
Closed 20 years ago
Bugzilla should return 404 for invalid products (e.g. in describecomponents.cgi)
Categories
(Bugzilla :: Bugzilla-General, defect)
Bugzilla
Bugzilla-General
Tracking
()
RESOLVED
INVALID
People
(Reporter: aguertin+bugzilla, Unassigned)
References
()
Details
If you give an invalid product to bugzilla, e.g. with http://bugzilla.mozilla.org/describecomponents.cgi?product=blahblahinvalid, it replies with Invalid Product Name The product name 'blahblahinvalid' is invalid or does not exist. Please press Back and try again. This page should be sent as a 404.
| Reporter | ||
Comment 1•20 years ago
|
||
On entering a bug with an invalid product, (https://bugzilla.mozilla.org/enter_bug.cgi?product=blahblahinvalid) it replies with a permission denied error. I can't see any reason for this, it seems like it should also just say invalid product (if so, someone should file a bug on that), but if there is a reason, that should be sent as a 403 error rather than a 404.
Comment 2•20 years ago
|
||
I fixed this problem one month ago in bug 153461 where entering an invalid product now redirect you to a list of available products (limited to the ones you are allowed to see, of course). This solution is much better than giving a 404 error!
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 3•20 years ago
|
||
It should still give a 404--it's possible to include html in the body of a 404 response. (Nice work with that, by the way :-)
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Comment 4•20 years ago
|
||
The script file itself exists. It's parameters to it that aren't valid. That doesn't qualify for a 404 or 403 error, as that might make a smart useragent that's paying attention suddenly think the CGI itself doesn't exist or is blocked. I think the only way this would legitimately work is if we were using PATH_INFO instead of QUERY_STRING, but we aren't, so we can't.
Status: REOPENED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → INVALID
Comment 5•20 years ago
|
||
I disagree. It is just a different page. A stupid UA would thing none of it is available.
You need to log in
before you can comment on or make changes to this bug.
Description
•