Last modified: 2012-10-30 15:24:06 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 T40609, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38609 - /w/CREDITS servered as application/octet-stream instead of text/plain
/w/CREDITS servered as application/octet-stream instead of text/plain
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Apache configuration (Other open bugs)
unspecified
All All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-23 20:24 UTC by Bawolff (Brian Wolff)
Modified: 2012-10-30 15:24 UTC (History)
5 users (show)

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


Attachments

Description Bawolff (Brian Wolff) 2012-07-23 20:24:42 UTC
Very very unimportant issue.

Special:version links to /w/CREDITS but out apaches server it as the wrong mime type (presumably because it has no extension)
Comment 1 Alex Monk 2012-09-30 16:12:05 UTC
*** Bug 40641 has been marked as a duplicate of this bug. ***
Comment 2 Jesús Martínez Novo (Ciencia Al Poder) 2012-09-30 16:13:26 UTC
Copying my comment from bug 40641:

Yep. It links to the CREDITS file on the installation. Since it has no .txt
extension the servers sends it with an unknown MIME type so the browser doesn't
know how to interpret it and prompts the user to download it.

That's very weird. We're using the latest web standards like HTML5, CSS and
JavaScript and we're using a plaintext file for that?

What about a link to the MediaWiki.org site where all those names are listed on
a nice wiki page? Although it may be inconsistent across different MediaWiki
versions.
Comment 3 Alex Monk 2012-09-30 16:29:06 UTC
Would there be any harm in simply changing DefaultType to text/html in operations/puppet.git/files/apache/apache2.conf.appserver?
Comment 4 Jesús Martínez Novo (Ciencia Al Poder) 2012-09-30 16:53:04 UTC
It's not text/html, it's text/plain.

And I suspect that would be only for WMF wikis. What about other installations? Adding a .txt extension would prevent the "download" dialog without any extra configuration change.
Comment 5 Alex Monk 2012-09-30 16:55:57 UTC
Uh, yeah, text/plain.

It would only be for WMF wikis. It's already working on my setup and I don't think I've changed anything. Other wikis will have to fix their webserver configuration if it's broken (unless we do rename those files to .txt).
Comment 6 Bawolff (Brian Wolff) 2012-09-30 17:15:53 UTC
> 
> That's very weird. We're using the latest web standards like HTML5, CSS and
> JavaScript and we're using a plaintext file for that?

Its traditional for such a file to be plaintext...

Personally I'm more concerned for wmf wikis. Its a very minor thing, so I don't think it matters that much for other wikis.
Comment 7 Bawolff (Brian Wolff) 2012-10-01 19:21:50 UTC
>Its traditional for such a file to be plaintext...

Or at least its traditional to have such a file when looking at the source code. Perhaps we should have a special page that simply takes that file, and outputs it (surrounded by normal skin stuff). That would also work for people who only expose certain entry points to the outside world (Since we do that (try looking up http://www.mediawiki.org/w/README, its not hard to imagine some would not expose CREDITS).

As an aside, whomever made that be a link in the first place did it slightly wrong. "Others" is also linked in the extension credits (for example in secure poll), which is inappropriate
Comment 8 Nemo 2012-10-02 15:34:35 UTC
(In reply to comment #7)
> >Its traditional for such a file to be plaintext...
> 
> Or at least its traditional to have such a file when looking at the source
> code. Perhaps we should have a special page that simply takes that file, and
> outputs it (surrounded by normal skin stuff). That would also work for people
> who only expose certain entry points to the outside world (Since we do that
> (try looking up http://www.mediawiki.org/w/README, its not hard to imagine some
> would not expose CREDITS).
> 
> As an aside, whomever made that be a link in the first place did it slightly
> wrong. "Others" is also linked in the extension credits (for example in secure
> poll), which is inappropriate

I agree, hence I've no idea why bug 40641 has been closed.
Comment 9 Nemo 2012-10-02 15:55:46 UTC
See also Gerrit change #13847?
Comment 10 Bartosz Dziewoński 2012-10-30 15:24:06 UTC
I believe this has been made irrelevant by the new [[Special:Version/Credits]] that Special:Version now links to instead of the raw file. The issue will fix itself with the deployment of 1.21wmf3.

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


Navigation
Links