Last modified: 2014-07-04 17:05:32 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 T68036, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66036 - text like formats (json,csv,etc) misdetected as text/plain by mw
text like formats (json,csv,etc) misdetected as text/plain by mw
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.22.6
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
aklapper-moreinfo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-02 14:58 UTC by sreutenauer
Modified: 2014-07-04 17:05 UTC (History)
6 users (show)

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


Attachments

Description sreutenauer 2014-06-02 14:58:27 UTC
Getting next message when trying to upload a .json file :

L'extension du fichier « .json » ne correspond pas au type MIME détecté du fichier (text/plain).

'filetype-mime-mismatch'
Comment 1 Andre Klapper 2014-06-16 09:50:56 UTC
Hi,
does the file "mime.types" list 
   text/plain json
?

See https://www.mediawiki.org/wiki/Manual:Mime_type_detection#MIME_type_validation for more information.
Comment 2 sreutenauer 2014-06-24 14:38:54 UTC
Hello,

No, it dit not list "text/plain json"
I just added it and now it works fine.
Comment 3 Andre Klapper 2014-06-24 15:07:39 UTC
Glad it works for you!
Resetting this ticket to INVALID as no code change was required.
Comment 4 Bawolff (Brian Wolff) 2014-06-24 15:49:10 UTC
This is technically the wrong solution. We should fix mime type detection for plain text like formats.
Comment 5 Tisza Gergő 2014-06-24 17:35:10 UTC
Also, I don't understand French, but that error sounds horribly uninformative. At a minimum, it should point the user to the manual page.
Comment 6 Bawolff (Brian Wolff) 2014-06-24 17:47:05 UTC
Originally my fault due to 3846d1048766a7a7ba0e57
Comment 7 Gerrit Notification Bot 2014-06-24 19:41:40 UTC
Change 141765 had a related patch set uploaded by Brian Wolff:
Fix mime detection of easily-confused-with text/plain formats

https://gerrit.wikimedia.org/r/141765
Comment 8 Gerrit Notification Bot 2014-07-04 07:43:45 UTC
Change 141765 merged by jenkins-bot:
Fix mime detection of easily-confused-with text/plain formats

https://gerrit.wikimedia.org/r/141765
Comment 9 Bawolff (Brian Wolff) 2014-07-04 17:05:32 UTC
Should be fixed in 1.24

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


Navigation
Links