FS#12424 - Wiki : URL having apostrophe cannot be accessed

Attached to Project: Arch Linux
Opened by brazzmonkey (brazzmonkey) - Friday, 12 December 2008, 08:09 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 14 April 2009, 21:51 GMT
Task Type Bug Report
Category Web Sites
Status Closed
Assigned To Dusty Phillips (Dusty)
Simo Leone (neotuli)
Dan McGee (toofishes)
Architecture All
Severity Medium
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

any wiki page having an apostrophe in its name cannot be accessed.

Steps to reproduce:
check out http://wiki.archlinux.org/index.php/NAT'ing_firewall_-_Adding_advanced_features for instance

this used to work properly a few days ago.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Tuesday, 14 April 2009, 21:51 GMT
Reason for closing:  Fixed
Comment by Jules (Misfit138) - Saturday, 13 December 2008, 01:27 GMT
Experiencing same issue here.
Comment by Jules (Misfit138) - Saturday, 13 December 2008, 01:28 GMT
"Beginners' Guide APPENDIX" Is also inaccessable..
http://wiki.archlinux.org/index.php/Beginners%27_Guide_Appendix
Comment by Dan McGee (toofishes) - Saturday, 13 December 2008, 03:41 GMT
Do we know the day this changed? Has it definitely worked since we upgraded the server?
Comment by brazzmonkey (brazzmonkey) - Monday, 15 December 2008, 09:23 GMT
all i can say is that is used to work on dec. 2nd (i modified a wiki entry on this day). So if your refer to nov.19-20th server upgrade, this should not be (directly) related.

I'm still able to access pages' diffs from my user contribution panel : there i noticed URL use an "%27" instead of the regular apostrophe. This lead me to a workaround :
http://wiki.archlinux.org/index.php/NAT'ing_firewall_-_Adding_advanced_features may be accessed using http://wiki.archlinux.org/index.php?title=NAT%27ing_firewall_-_Adding_advanced_features

i'm not skilled when it comes to servers and web apps, but i think this could be an encoding issue and/or a URL rewriting issue.


Comment by brazzmonkey (brazzmonkey) - Monday, 15 December 2008, 09:25 GMT
well, most likely URL rewriting issue, because the following also works :
http://wiki.archlinux.org/index.php?title=NAT'ing_firewall_-_Share_your_broadband_connection
Comment by Dan McGee (toofishes) - Monday, 15 December 2008, 13:06 GMT
Thanks for the details- this will hopefully help us track it down.
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 23 January 2009, 14:56 GMT
Still broken. Any update on this? It shouldn't be too hard to fix if it is a rewrite problem only.
Comment by Lienhart Woitok (liwo) - Sunday, 25 January 2009, 13:23 GMT
I had the same problem on a wiki of mine (running on gentoo) and found this bug via google. As google does not yet find a solution for me, I think I tell the world how I solved the issue: The issue was caused by suhosin with the setting suhosin.server.strip = 1. Changing it to 0 was all that was necessary.

Above mentioned setting causes suhosin to replace <>"'` characters with ? in PHP_SELF, PATH_TRANSLATED and PATH INFO. It seems like mediawiki uses one of these to determine the requested page. Obviously this cannot work if the URL contains an apostrophe or any other of the replaced characters.

I hope this information will be helpfull.
Comment by Dan McGee (toofishes) - Sunday, 25 January 2009, 15:30 GMT
Looks like very helpful information, and it fixes the issue.

Do we know if a newer MediaWiki version is able to work with this setting re-enabled?
Comment by brazzmonkey (brazzmonkey) - Wednesday, 25 February 2009, 22:49 GMT
This issue now seems solved. Maybe because Mediawiki has been updated?
Comment by Dan McGee (toofishes) - Friday, 27 February 2009, 04:39 GMT
No, the issue was fixed earlier than that, however, it would be worth it to try re-enabling this option in suhosin to see if MediaWiki can handle it correctly now.

Loading...