Last modified: 2014-08-01 18:18:07 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 T64289, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62289 - images .htaccess file makes images inaccessible
images .htaccess file makes images inaccessible
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.23.0
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-05 23:45 UTC by Ryan Kaldari
Modified: 2014-08-01 18:18 UTC (History)
9 users (show)

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


Attachments

Description Ryan Kaldari 2014-03-05 23:45:49 UTC
This may just be something specific to my local instance, but I can't access anything in my images directory unless I delete the rewrite rules in images/.htaccess.

With the rewrite rules in place, any URL within my images directory results in a 500 server error. With the rewrite rules removed, everything works fine.

I'm using Apache 2.0 in MacOS 10.8.5 with MediaWiki 1.23 (current master).
Comment 1 Luis Felipe Schenone 2014-07-30 12:41:26 UTC
It isn't only your local instance. I too had problems due to the rules in that damn .htaccess file. I was looking for a solution for over an hour until I finally just randomly checked if there was a hidden file at my images directory, and there it was. I deleted the rules and everything went back to normal. However, I wasn't getting a 500 error, but rather a 403. I'm using Apache 2.2.24, Mac 10.9 and MediaWiki 1.23.1
Comment 2 Ryan Kaldari 2014-07-30 17:48:49 UTC
CCing Tim...
Comment 3 Ryan Kaldari 2014-07-30 17:53:00 UTC
For reference, the current rewrite rules for images are:

<IfModule rewrite_module>
	RewriteEngine On
	RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase]
	RewriteRule . - [forbidden]
</IfModule>
Comment 4 Sam Reed (reedy) 2014-07-30 18:04:48 UTC
WFM

Ubuntu 14.04.1
Apache 2.4.7-1ubuntu4.1
PHP 5.5.9-1ubuntu4.3

MW 1.24alpha (git master)



The common thing here would seem to be OSX
Comment 5 Ryan Kaldari 2014-07-30 18:10:01 UTC
When I try to access the file directly I get...
Forbidden
You don't have permission to access /images/thumb/... on this server.

The Apache error logs say:
[warn] (2)No such file or directory: Cannot reinit SSLMutex
Comment 6 Tim Starling 2014-07-31 20:29:09 UTC
Looks like an Apache bug. I wonder if any RewriteRule would do it.
Comment 7 Ryan Kaldari 2014-07-31 20:44:33 UTC
Tim: Looks like you're right. I tried a variety of different RewriteConds and they all result in the 500 error.
Comment 8 Ryan Kaldari 2014-07-31 20:47:22 UTC
I'm currently running Apache 2.2.24 (which produces the bug). I'll try upgrading it and see if that makes any difference.
Comment 9 Ryan Kaldari 2014-08-01 18:18:07 UTC
Updated to Apache 2.2.26 and still have the same problem (403 error Forbidden).

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


Navigation
Links