[Bug 23642] mime of some xls files are incorrectly detected as application/zip

2010-06-15 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=23642

Eggertsen christ...@eggertsen.se changed:

   What|Removed |Added

 CC||christ...@eggertsen.se

--- Comment #11 from Eggertsen christ...@eggertsen.se 2010-06-15 18:23:15 UTC 
---
Added myself to CC list.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 23642] mime of some xls files are incorrectly detected as application/zip

2010-06-01 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=23642

--- Comment #10 from Derk-Jan Hartman hart...@videolan.org 2010-06-01 
22:45:24 CEST ---
This is a difficult one to work around. I guess we could scan for
[Content_Types].xml in the file, which would identify it as an Open Packaging
Conventions ZIP file. The only way to then set the mime type correctly is by
relying on the filename extension as far as I can see, because it is just a zip
archive and can contain anything basically.

I'm not sure if [Content_Types].xml is always file1 in the zip however, so we
may have to read the entire directory listing of the zip archive

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 23642] mime of some xls files are incorrectly detected as application/zip

2010-05-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=23642

--- Comment #8 from Anon Sricharoenchai anon@gmail.com 2010-05-27 
03:30:21 UTC ---
It think it can be duplicated on the latest version, since the logic in
MimeMagic::doGuessMimeType() look the same (when comparing 1.14 to svn).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 23642] mime of some xls files are incorrectly detected as application/zip

2010-05-25 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=23642

--- Comment #7 from Reedy s...@reedyboy.net 2010-05-25 10:38:01 UTC ---
Can this be duplicated on 1.15/1.16?

If not, it can be closed

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 23642] mime of some xls files are incorrectly detected as application/zip

2010-05-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=23642

Anon Sricharoenchai anon@gmail.com changed:

   What|Removed |Added

Summary|mime of some xls files are  |mime of some xls files are
   |incorrectly detect as   |incorrectly detected as
   |application/zip |application/zip

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 23642] mime of some xls files are incorrectly detected as application/zip

2010-05-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=23642

--- Comment #1 from Anon Sricharoenchai anon@gmail.com 2010-05-24 
09:15:07 UTC ---
MimeMagic::doGuessMimeType: ZIP header present at end of /tmp/php4korsl
MimeMagic::detectZipType:
/^mimetype(application\/vnd\.oasis\.opendocument\.(?:chart|chart-template|formula|formula-template|graphics|graphics-template|image|image-template|presentation|presentation-template|spreadsheet|spreadsheet-template|text|text-template|text-master|text-web))/
MimeMagic::detectZipType: unable to identify type of ZIP archive
MimeMagic::guessMimeType: final mime type of /tmp/php4korsl: application/zip
MediaHandler::getHandler: no handler found for application/zip.
File::getPropsFromPath: /tmp/php4korsl loaded, 43008 bytes, application/zip.
MacBinary::loadHeader: header bytes 0 and 74 not null
MimeMagic::doGuessMimeType: ZIP header present at end of /tmp/php4korsl
MimeMagic::detectZipType:
/^mimetype(application\/vnd\.oasis\.opendocument\.(?:chart|chart-template|formula|formula-template|graphics|graphics-template|image|image-template|presentation|presentation-template|spreadsheet|spreadsheet-template|text|text-template|text-master|text-web))/
MimeMagic::detectZipType: unable to identify type of ZIP archive
MimeMagic::guessMimeType: final mime type of /tmp/php4korsl: application/zip


mime: lt;application/zipgt; extension: lt;xlsgt;

UploadForm::verifyExtension: mime type application/zip mismatches file
extension xls, rejecting file

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 23642] mime of some xls files are incorrectly detected as application/zip

2010-05-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=23642

Bawolff bawolff...@gmail.com changed:

   What|Removed |Added

 CC||bawolff...@gmail.com

--- Comment #2 from Bawolff bawolff...@gmail.com 2010-05-24 09:20:20 UTC ---
Are you sure it isn't zip? From what I understand, excel 2007's default format
(.xlsx, but I don't think excel cares what the extension is) is actually a zip
archive.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 23642] mime of some xls files are incorrectly detected as application/zip

2010-05-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=23642

Reedy s...@reedyboy.net changed:

   What|Removed |Added

 CC||s...@reedyboy.net

--- Comment #3 from Reedy s...@reedyboy.net 2010-05-24 23:37:11 UTC ---
Indeed, they are

And Version 1.14?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 23642] mime of some xls files are incorrectly detected as application/zip

2010-05-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=23642

--- Comment #4 from Anon Sricharoenchai anon@gmail.com 2010-05-25 
03:05:10 UTC ---
I'm not sure what format, but I can unzip it.

1. The xml file inside the zip contains
xmlns=http://schemas.openxmlformats.org/package/2006/content-types;
2. The file can be opened by openoffice.org 2.4

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 23642] mime of some xls files are incorrectly detected as application/zip

2010-05-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=23642

--- Comment #5 from Anon Sricharoenchai anon@gmail.com 2010-05-25 
03:10:34 UTC ---
3. When unzip (in gnu/linux), it says,

   warning [filename.xls]:  22287 extra bytes at beginning or within zipfile

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 23642] mime of some xls files are incorrectly detected as application/zip

2010-05-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=23642

--- Comment #6 from Anon Sricharoenchai anon@gmail.com 2010-05-25 
03:19:11 UTC ---
4. The file can be opened by openoffice.org 2.0 (ubuntu 6.06)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l