Closed Bug 653007 Opened 15 years ago Closed 15 years ago

Redirect clean up removes redirects to non-wiki-page URLs

Categories

(support.mozilla.org :: Knowledge Base Software, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cww, Assigned: erik)

References

Details

If we get rid of htaccess controls, we should allow redirects to point to non KB articles (like the home page).
As part of fixing this, please back out 7525e06 in a separate commit.
Assignee: nobody → erik
Target Milestone: --- → 2.8.1
Is there a redirect I can test this on?
Probably. It's easy enough to make one: just put "REDIRECT [[http://www.example.com/]]" into a page, and see if it gets deleted when the KB rebuild runs. It shouldn't.
(Shouldn't that be "REDIRECT [http://www.example.com]"?)
I can never keep them straight (says the guy making the MW parser).
So I added the redirect message above, waited, and after the kb rebuild [I'm assuming it happened as it'd been around an hour and the behavior changed], the page is now not found. ex: https://support-release.allizom.org/en-US/kb/abacus/edit
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Was able to repro a second time [as there was a question of whether the first test was interfered with by a rabbit restart]: https://support-release.allizom.org/en-US/kb/calligraphy/history
I shall have a look.
Hmm, I have been unable to reproduce that page deletion locally. I put "REDIRECT [http://www.example.com]" on a brand new wiki page, reviewed it, and approved it. Did you do anything materially different? I'm going to check out 2.8.1 proper (though it shouldn't make a difference) and have another try. I'm also going to try it on support-release myself.
I was able to repro this today on support-release using this article: https://support-release.allizom.org/en-US/kb/changess/history I picked an article, edited it, reviewed it and waited- the redirect worked for about 40 minutes until the kb rebuild- now it's page not found.
Checking out the next branch locally, I'm still unable to reproduce it. I suspect that celery didn't get restarted on support-release and so didn't pick up my change to the rebuild code. I've asked oremj to restart it, though he hasn't replied yet. Since this isn't a regression as it stands now, we can still deploy this at 3pm. I wouldn't be surprised if it started working on production.
Started working after celery was restarted. It hadn't picked up the new task code.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Verified redirects are not deleted any longer.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.