https://bugzilla.wikimedia.org/show_bug.cgi?id=27544

--- Comment #12 from Derk-Jan Hartman <hart...@videolan.org> 2011-02-19 
16:22:58 UTC ---
summary, on wmf servers, guessMimeType returns 'application/xml' instead of
'image/svg+xml'. guess mimetype calls doGuessMimeType(), which will call
XmlTypeCheck()

$xml = new XmlTypeCheck(
'http://bug-attachment.wikimedia.org/attachment.cgi?id=8170' );
var_dump( $xml->wellFormed );

shows the wmf servers as evaluating wellFormed to false. This is not correct
btw, for most of these files, since most are only invalid but are wellformed,
this is a bug in XmlTypeCheck().

Actually, on my own server it even always evaluates to false, but later parts
apparently pick up the slack.

MimeMagic::doGuessMimeType: analyzing head and tail of
/private/var/tmp/phpwMVYQ7 for magic numbers.
DjVuImage::getInfo: not a DjVu file
MimeMagic::guessMimeType: internal type detection failed for
/private/var/tmp/phpwMVYQ7 (.)...
MimeMagic::detectMimeType: magic mime type of /private/var/tmp/phpwMVYQ7:
image/svg+xml
MimeMagic::guessMimeType: guessed mime type of /private/var/tmp/phpwMVYQ7:
image/svg+xml
MimeMagic::improveTypeFromExtension: improved mime type for .svg: image/svg+xml
File::getPropsFromPath: /private/var/tmp/phpwMVYQ7 loaded, 5266 bytes,
image/svg+xml.


Internal type detection failed, indicates that doGuessMimeType() has returned
false and detectScript() takes over and selects image/svg+xml for me, but
apparently not on the WMF installation.

I guess in 1.16 something was correcting for this issue for wmf as well, but
now no more...

-- 
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

Reply via email to