[MediaWiki-l] Painful Short-URL

kghbln mediawiki at kghoffmeyer.de
Thu Mar 31 21:56:40 UTC 2016


Heiya Daniel,

thank you for your insight and assessment of the situation. While I
myself cannot do such an elaborate analysis as in [1] I can now confirm
that pulling MW 1.26.2 in favour of MW 1.25.5 got me a fully accessible
wiki. Same "LocalSettings.php" and same RewriteRules. Thus I can confirm
that there is indeed something in the water.

I will be on phabricator regarding this.

Cheers and thanks again!

Cheers Karsten

Am 31.03.2016 um 20:42 schrieb Daniel Friesen:
> This sounds very similar to another bug where IIS users get infinite
> redirect loops in 1.26.
> 
> Someone tried to 'fix' another bug by introducing a new normalizing
> redirect to MediaWiki in 1.26.
> 
> But it's starting to look like enough attention was not paid to the
> "edge" cases of web servers an international text other than the narrow
> subset this change was tested with.
> 
> Which IMHO is not the web server's fault, because this http->server->php
> area the normalization is treading in is NOT a standardized thing one
> should expect certain forms of normalization.
> 
> [0] https://gerrit.wikimedia.org/r/#/c/219446/
> [1] https://phabricator.wikimedia.org/T127734
> 
> ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/]
> 
> On 2016-03-31 11:11 AM, kghbln wrote:
>> Heiya,
>>
>> this is painful for me.
>>
>> There is a wiki accessible with the following logic:
>>
>> "http://example.com/wiki/Main_Page"
>>
>> When I edit I have:
>>
>> "http://example.com/w/index.php?title=Main_Page&action=edit"
>>
>> To get this magic running I have the following RewriteRules:
>>
>> RewriteEngine On
>> RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
>> RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]
>>
>> And in "LocalSettings.php":
>>
>> $wgScriptPath = "/w";
>> $wgScriptExtension = ".php";
>> $wgArticlePath = "/wiki/$1";
>> $wgUsePathInfo = true; // true or false does not make a difference
>>
>> Everything is cool until I dare to try accessing a page containing a
>> special character, e.g. "http://example.com/wiki/So_ein_Ärger" and end
>> up in an indefinite redirect loop.
>>
>> This wiki is a MW 1.26.2.
>>
>> Any hint out there? Never encountered anything similar. Admittedly not
>> my first wiki.
>>
>> Thanks and cheers
>>
>> Karsten
>>
>>
>> _______________________________________________
>> MediaWiki-l mailing list
>> To unsubscribe, go to:
>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> 
> 
> _______________________________________________
> MediaWiki-l mailing list
> To unsubscribe, go to:
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> 



More information about the MediaWiki-l mailing list