Page MenuHomePhabricator

Slash (/) entered as %2F causes 404 file not found error
Closed, ResolvedPublic

Description

Author: harryboyles

Description:
I've got a Firefox keyword search bookmark created (so that when i type "wpgo
Main Page" it will take me to the enwiki Main Page). This works fine if the page
is not a subpage. However, when it is, Firefox replaces the / with %2F, colon :
with %3A, etc (in the case of
http://en.wikipedia.org/wiki/User%3AHarryboyles%2FStatus). The %2F causes a 404
file not found error to occur. I'm not sure whether this is a Firefox issue,
Wikimedia issue or MediaWiki issue.


Version: unspecified
Severity: normal
Platform: PC

Details

Reference
bz9204

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:39 PM
bzimport set Reference to bz9204.
  • Bug 9205 has been marked as a duplicate of this bug. ***

This is a low-level "feature" in Apache.

  • Bug 11735 has been marked as a duplicate of this bug. ***

See http://httpd.apache.org/docs/2.0/mod/core.html#allowencodedslashes how to fix this. in my opinion, it should be fixed, as I think there is no security issue here in danger by allowing encoded hashes.

When we've upgraded every server to Apache 2, we'll take a peek. :)

(In reply to comment #5)

When we've upgraded every server to Apache 2

Do you mean WMF servers still run Apache 1.3? *shock*

*** Bug 17389 has been marked as a duplicate of this bug. ***

Reopening.

(1) Makes it easier to find when searching to avoid dupes.
(2) This should probably be looked at again. How far along is the transition to Apache 2?

Note four of those ways are "don't encode them that way", and one is to use the configuration option in Apache 2 mentioned above to disable the stupid restriction. :)

Complete Apache 2 use is still pending on completion of the Ubuntu migration -- filing this as bug 17452 so we have it in the dependency tree.

*After* the migration is completed we can go ahead and disable the check. Until then it should remain on so behavior will remain consistent.