https://bugzilla.wikimedia.org/show_bug.cgi?id=22709

           Summary: IIS7.5 is mishandling redirects generated by
                    OutputPage::output() when the URL contains special
                    characters
           Product: MediaWiki
           Version: 1.16-svn
          Platform: All
        OS/Version: Windows 7
            Status: NEW
          Severity: major
          Priority: Normal
         Component: Redirects
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: lhrid...@gmail.com


This issue was originally reported on the MediaWiki Users forums in this
thread:

http://www.mwusers.com/forums/showthread.php?14312-MediaWiki-and-IIS7-URL-bug

The original reporter tested this on MW version 1.13.2 and 1.15.1, using PHP
version 5.2.9 using IIS7.5 on Microsoft Server 2008.  I have duplicated this
behavior on a VMWare virtual machine running Windows 7 Ultimate, using IIS 7.5
and PHP version 5.2.12 with MW version 1.15.1 and 1.16alpha.

The test urls used to generate this error are:

http://localhost/w/index.php?title=á:á
http://localhost/w/index.php?title=á:Test

The issue in question is the presence of special characters in the title name
when a colon is also present and there are special characters preceding the
colon.

When MediaWiki encodes the title and sends redirect headers in
OutputPage::output(); IIS7.5 is returning a 404.0 error, and IIS7.5 indicates
that the requested URL is in the format:

http://localhost:80/w/index.xn--php?title=-14a:%C3%A1 (first url above)
http://localhost:80/w/index.xn--php?title=-14a:Test (second url above)

So, at some point it appears that IIS7.5 is rewriting the URL redirect.

Setting $wgDebugRedirects = true; circumvents this error by generating a link
to the redirect page instead.

This may in fact be a IIS7.5 bug, but at this point Microsoft's stand is that
this is an application error.

This issue was found and tested against IIS7.5 but may in fact have been
introduced in IIS7.

This issue is browser independent; it has been recreated in IE8, IE7 and
Firefox 3.6.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to