Closed
Bug 621737
Opened 14 years ago
Closed 14 years ago
Infinite redirect loop if user profile doesn't exist
Categories
(support.mozilla.org :: General, defect, P2)
support.mozilla.org
General
Tracking
(Not tracked)
VERIFIED
FIXED
2.4.1
People
(Reporter: jsocol, Assigned: paulc)
Details
If a user doesn't exist, going to their profile at /users/123456/ will raise a 404, that our strip-slash middleware will catch, and redirect to /users/123456. Since that's not a valid route, Django will add the slash and send it back to /users/123456/, which, etc... We should steal AMO's method of dealing with trailing slashes, as it avoids this. Also, we should get consistent, and either use them everywhere or nowhere, but that's a bigger bug. This is not a Users & Groups bug, because the slash-stripping middleware is global. This is just an easy example/test-case.
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → paulc
Priority: -- → P2
Assignee | ||
Comment 1•14 years ago
|
||
URLs don't have slashes anymore. URLs with slashes are redirected to the removed-trailing-slash version. https://github.com/jsocol/kitsune/commit/b2bc6de1f6d6c33ba497f9326394dab9d4bff73d
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 2•14 years ago
|
||
Verified going to invalid user profile with or without trailing slash just gets page not found- no error or redirect
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•