Last modified: 2012-03-04 03:16:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35520, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33520 - $wgMaxRedirects totally broke at some point
$wgMaxRedirects totally broke at some point
Status: RESOLVED DUPLICATE of bug 30359
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
1.20.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-04 19:32 UTC by Bawolff (Brian Wolff)
Modified: 2012-03-04 03:16 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bawolff (Brian Wolff) 2012-01-04 19:32:25 UTC
I haven't investigated this very thouroughly, but somewhere along the way, $wgMaxRedirects became broken (I tested in 1.18, and it works as expected). The drawing of redirect levels works, but actually following the redirects always goes to 1 level

$wgMaxRedirects = -1; (or 0)
Expected behaviour: Redirects aren't followed, pretty redirect picture isn't drawn (personally I find it weird that it isn't drawn, but that appears to be the intention of the code)
Actual behaviour: Redirects are followed 1 level (unexpected), pretty picture not drawn (Expected).


$wgMaxRedirects = 3
Expected behaviour: Redirects followed 3 levels, pretty redirect picture drawn to 3 levels
Actual behaviour: Redirects are followed 1 level (unexpected), pretty picture drawn for 3 levels (Expected).
Comment 1 MrBlueSky 2012-01-05 14:29:25 UTC
I get the unexpected results (which I thought were intended) in 1.17 and 1.18 too. But not always.. It seems to depend on the order in which you create and edit(and maybe view?) the pages.

The following seems to be reproducable in 1.17 and 1.18:

Set wgMaxRedirects to high
Create page 3 with redirect to 4
Create page 2 with redirect to 3
Create page 1 with redirect to 2
Edit 3 to redirect to 9
Goto page 1: it shows ->2->4 instead of ->2->3->9 
Create page 4 with redirect to 5
Goto page 1 again: now it takes you to page 4
Comment 2 Bawolff (Brian Wolff) 2012-01-06 10:21:10 UTC
Hmm, it looks like this has to do with redirects are stored in the redirect table.
Comment 3 Bawolff (Brian Wolff) 2012-01-07 19:11:12 UTC
So no longer thinking this is a regression in 1.19. Possibly caused by r69181.
Comment 4 Antoine "hashar" Musso (WMF) 2012-03-03 19:55:02 UTC
See also comment one by Roan on bug 30359
Comment 5 Bawolff (Brian Wolff) 2012-03-04 03:16:53 UTC
(In reply to comment #4)
> See also comment one by Roan on bug 30359

This is close enough to be a dupe to that bug.

*** This bug has been marked as a duplicate of bug 30359 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links