Page MenuHomePhabricator

.htaccess in tarball causing problems
Closed, InvalidPublic

Description

Author: isaicastro99

Description:
Ever since MediaWiki 1.23.6, .htaccess was added (apparently) and .htaccess causes trouble! I installed MediaWiki 1.23.6 and wanted to edit my vector.css and it went to index.php and gave me a 403 error, I reinstalled resources, maintenance, and includes; it still 403ed and then I cut .htaccess and tried to edit something AND IT WORKED! I could edit again, but I decided to report this since developers could try to fix the problem for future MediaWiki releases if this is a software issue.


Version: 1.23.6
Severity: normal
OS: Linux
Platform: Other
Whiteboard: aklapper-moreinfo

Details

Reference
bz72868

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:57 AM
bzimport set Reference to bz72868.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for taking the time to report this!

https://releases.wikimedia.org/mediawiki/1.23/mediawiki-1.23.6.tar.gz does not include a file named .htaccess hence I am closing this report as INVALID.

If there are still issues to sort out you can receive support at https://www.mediawiki.org/wiki/Project:Support_desk

FIXED implies that a code change has been committed to the code repository. That is not the case, hence changing the ticket resolution back to INVALID.

(In reply to Andre Klapper from comment #1)

Thanks for taking the time to report this!

https://releases.wikimedia.org/mediawiki/1.23/mediawiki-1.23.6.tar.gz does
not include a file named .htaccess hence I am closing this report as INVALID.

If there are still issues to sort out you can receive support at
https://www.mediawiki.org/wiki/Project:Support_desk

That's actually incorrect. It has several (some are created by mediawiki automatically at certain times, like when the first file is deleted, but some would be in the tarball. Keep in mind most unix tools wont show them by default)

However i dont believe any would be in the root mw directory (and comment 0 suggests thats where it is in this bug). If there is one there it is probably from someone trying to do short url setup (and would indeed not be a mw bug).

Isai: which .htacess file was causing problems for you? (What is its path)

bawolff: Ah, thanks for correcting me! Was only looking for top-level.

isaicastro99 wrote:

The .htaccess file was in the root directory of MediaWiki, I have a copy of it...

isaicastro99 wrote:

That problem file..

Attached:

This file should be in the images/ directory, not the root. Maybe it got copied accidentally?

Re: the spurious 403, that's probably a duplicate of bug 62289.

(In reply to Tisza Gergő from comment #8)

This file should be in the images/ directory, not the root. Maybe it got
copied accidentally?

Re: the spurious 403, that's probably a duplicate of bug 62289.

That bug is about a 500, so is different.

I suspect the issue is simply the .htaccess is in the root directory where it shouldn't be (File names aren't allowed to have colons in them, so the .htaccess blocking things with colons is probably "normal"). I'm going to re-close this bug as INVALID since its probably an accidental copying error as you said.