Last modified: 2008-02-12 22:37:22 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 T4088, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2088 - Consecutive /s merged in PATH_INFO URLs on Apache 2
Consecutive /s merged in PATH_INFO URLs on Apache 2
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://jadesukka.homelinux.org:8180/b...
:
: 2220 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-06 06:07 UTC by lɛʁi לערי ריינהארט
Modified: 2008-02-12 22:37 UTC (History)
2 users (show)

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


Attachments

Description lɛʁi לערי ריינהארט 2005-05-06 06:07:29 UTC
Halló!

Please go at http://jadesukka.homelinux.org:8180/betawiki/Luokka:Pseudo_hidden .

Change your prefferences to English. Press CTRL-SHIFT-R in Mozilla Firefox.

There is an entry that looks like <nowiki>Http://bugzilla.wikimedia.org/</nowiki>

a) click on it and you will think it is empty
b) go to Recentchanges
http://jadesukka.homelinux.org:8180/betawiki/Toiminnot:Recentchanges and click on
<nowiki>Http://bugzilla.wikimedia.org/</nowiki>
this will open
<nowiki>http://jadesukka.homelinux.org:8180/mediawiki15c/index.php?title=Http://bugzilla.wikimedia.org/&rcid=696</nowiki>
(hope that the page in bugzilla does not break again)


This is not the only one:

http://jadesukka.homelinux.org:8180/mediawiki15c/index.php?title=/&rcid=581


At
<nowiki>http://jadesukka.homelinux.org:8180/betawiki/K%C3%A4ytt%C3%A4j%C3%A4:Gangleri/feedback#existence_of_objects_.26ndash.3B_anomaly_with_image_namespace</nowiki>
You can see some tests.

There is a line "<nowiki>Compare with: [[: ]], [[:_]], #, [[:+]], /, :, &, ?, %,
$</nowiki>".
Klick on the link "/". This is the same behaviour.

Read the "notes" about behaviour at [[yi:User:Gangleri/tests#curiosity .2F]] .


Hope that [[fi:user:ikerabbit]] can tell you more about his Betawiki.

Thanks for your time reading and fixing this.

Regards Reinhardt
Comment 1 Brion Vibber 2005-05-06 06:25:48 UTC
Seems to be specific to PATH_INFO urls on Apache 2. Samples:

http://jadesukka.homelinux.org:8180/betawiki/A//b
http://jadesukka.homelinux.org:8180/mediawiki15c/index.php/A//b
http://test.leuksman.com/index.php/A//b
* title displayed as "A/b"
* PHP installed as apache2handler

http://en.wikipedia.org/wiki/A//b
http://en.wikipedia.org/w/index.php/A//b
http://wp.wikidev.net/A//b
http://wp.wikidev.net/index.php/A//b
* title at wiki is "A//b"
* PHP installed as apache

Putting the title in the query string on Apache 2 shows correctly:
http://jadesukka.homelinux.org:8180/mediawiki15c/index.php?title=A//b
http://test.leuksman.com/index.php?title=A//b
Comment 2 Brion Vibber 2005-05-22 06:20:02 UTC
*** Bug 2220 has been marked as a duplicate of this bug. ***
Comment 3 Zigger 2005-05-22 12:37:15 UTC
See also bug 98 and bug 428.
Comment 4 lɛʁi לערי ריינהארט 2005-06-05 13:37:41 UTC
This bug has impacts on [[Special:Random]] because these pages are "selected
randomly" but not displayed properly. It can happen that "this pages does not
exist" will be shown.

See
http://jadesukka.homelinux.org:8180/mediawiki15c/index.php?title=/move&rcid=2646

Regards Reinhardt
Comment 5 Zigger 2005-06-25 14:55:01 UTC
This is in the ASF bug database for "Apache httpd-2.0".  See
http://issues.apache.org/bugzilla/show_bug.cgi?id=10775 ("SCRIPT_NAME wrong
value"), which has a similar underlying issue with PATH_INFO as bug 1519.

A fix could a bit more complicated than the one for bug 1519, as it needs to
deal with two broken environment variables, either one of which may be fixed
first in a future Apache release, and it also needs to handle combinations of
leading, embedded, and trailing slashes.  

Alternatively, the code could just parse REQUEST_URI itself.  For other Apache
2.0 issues with PATH_INFO, see
http://issues.apache.org/bugzilla/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=__all__&product=Apache+httpd-2.0&content=PATH_INFO

One work-around is to stop using pretty URLs by setting $wgUsePathInfo to false
in LocalSettings.php.
Comment 6 Zigger 2005-06-26 17:02:04 UTC
(In reply to comment #5)
>... Alternatively, the code could just parse REQUEST_URI itself. ...

If this is done, watch out for encoding differences.  REQUEST_URI is
URL-encoded, while PATH_INFO and SCRIPT_NAME are normalised.
Comment 7 Brion Vibber 2008-02-12 22:37:22 UTC
This should have been resolved by the new title interpolation code in 1.10 or 1.11. Resolving as FIXED; reopen if still encountering such troubles.

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


Navigation
Links