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)
Tracking
(Not tracked)
VERIFIED
FIXED
2.8.1
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).
Comment 1•15 years ago
|
||
As part of fixing this, please back out 7525e06 in a separate commit.
| Assignee | ||
Updated•15 years ago
|
Assignee: nobody → erik
Target Milestone: --- → 2.8.1
| Assignee | ||
Comment 3•15 years ago
|
||
master: https://github.com/jsocol/kitsune/commit/00bbc858a1ba3d3ed612fe4a1a2e0980af13933f
next (2.8.1): http://github.com/jsocol/kitsune/commit/91fc84594741966d6d881f14d1850c356b7320b2
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 4•15 years ago
|
||
Is there a redirect I can test this on?
| Assignee | ||
Comment 5•15 years ago
|
||
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.
Comment 6•15 years ago
|
||
(Shouldn't that be "REDIRECT [http://www.example.com]"?)
| Assignee | ||
Comment 7•15 years ago
|
||
I can never keep them straight (says the guy making the MW parser).
Comment 8•15 years ago
|
||
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 → ---
Comment 9•15 years ago
|
||
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
| Assignee | ||
Comment 10•15 years ago
|
||
I shall have a look.
| Assignee | ||
Comment 11•15 years ago
|
||
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.
Comment 12•15 years ago
|
||
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.
| Assignee | ||
Comment 13•15 years ago
|
||
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.
| Assignee | ||
Comment 14•15 years ago
|
||
Started working after celery was restarted. It hadn't picked up the new task code.
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•