Last modified: 2013-10-23 18:17:47 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 T36042, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34042 - Can no longer download files with Short-URLs and img_auth.php enabled
Can no longer download files with Short-URLs and img_auth.php enabled
Status: RESOLVED DUPLICATE of bug 32486
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.18.x
PC Linux
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-30 15:27 UTC by Johannes Weberhofer
Modified: 2013-10-23 18:17 UTC (History)
3 users (show)

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


Attachments
Make img_auth.php working with with Short-URLs and img_auth.php enabled (413 bytes, application/octet-stream)
2012-01-30 15:27 UTC, Johannes Weberhofer
Details
Backported r104150 (1.62 KB, patch)
2012-01-31 12:06 UTC, Johannes Weberhofer
Details

Description Johannes Weberhofer 2012-01-30 15:27:08 UTC
Created attachment 9925 [details]
Make img_auth.php working with with Short-URLs and img_auth.php enabled

Since Version 1.18 it was not longer possible to download Images when using Short URLs (Apache configuration "Alias /wiki/images      /srv/www/vhosts/DOMAIN/mediawiki/webroot/img_auth.php"). 

Today I have debugged this issue, and found, that the $path variable in img_auth.php isn't set correctly, as the path is always prefixed with "images/" ( or "img_auth.php/ when calling it without the apache Alias directive)", and therefore the real path can not be found.

I have prepeared a patch which fixes this problem for me, stripping of the filename when necessary. I currently do not have a MW base-installation available here, so I don't know if the patch has any negative influence on mor simple configurations...
Comment 1 Daniel Friesen 2012-01-30 15:44:58 UTC
That patch will utterly break img_auth in other configurations.

In any case we already fixed this bug in 1.19 last time I checked.

*** This bug has been marked as a duplicate of bug 32486 ***
Comment 2 Johannes Weberhofer 2012-01-31 12:06:07 UTC
Created attachment 9931 [details]
Backported r104150

Thank you for the quick response. I have backported the mentioned solution to have a working 1.18 wiki...

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


Navigation
Links