Closed Bug 1022964 Opened 12 years ago Closed 12 years ago

Infinite redirect on mana.mozilla.org

Categories

(Infrastructure & Operations :: IT-Managed Tools, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mythmon, Assigned: cturra)

Details

When manually typing in an address like https://mana.mozilla.org/bug, Mana tries to redirect to htts://mana.mozilla.org/wikibug. The part on the end can be any thing to reproduce this bug, so "wikibug" also redirects to "wikiwikibug", and then to "wikiwikiwikibug", and so forth. Eventually Firefox gets sick of Mana's redirects and throws up an error page about the page not redirecting properly. I suspect there is an Apache rewrite rule somewhere that needs a trailing slash added or a leading slash removed.
:mythmon - i know the infinite loop doesn't make sense, but i am curious what your expected outcome is? looking at the apache config, this following rewrite is in place (and has been since commit 11580, which is many years old): Redirect / https://mana.allizom.org/wiki
Flags: needinfo?(mcooper)
* i included the stage redirect, but the same applies in prod. i just wanted to clarify that. Redirect / https://mana.mozilla.org/wiki
I did this mainly because I was hopeful that https://mana.mozilla.org/Page would go to some the page of the right name, which I have learned wouldn't work anyways. So now I don't have an expected outcome besides a 404, but it would be nice to get a sane document not found page instead of sending the browser on an infinite loop quest.
Flags: needinfo?(mcooper)
i updated the rewrite to do its thing a little more sensibly. RewriteEngine On RewriteCond %{REQUEST_URI} !^/wiki RewriteRule ^/(.*)$ https://mana.mozilla.org/wiki/$1 [R=302,L]
Assignee: server-ops-webops → cturra
Status: NEW → RESOLVED
Closed: 12 years ago
OS: Linux → All
Hardware: x86_64 → All
Resolution: --- → FIXED
Verified. Thanks, Chris.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.