[Pharo-project] Traceback from MIMEDocument>>guessTypeFromName

Philippe Marschall philippe.marschall at netcetera.ch
Tue Oct 26 11:50:30 EDT 2010


On 10/26/2010 05:32 PM, Tony Fleig wrote:
> In Pharo1.1 update #11411,
> 
> evaluating
> 
>     MIMEDocument guessTypeFromName: 'x.css'
> 
> produces the attached traceback.
> 
> Changing
> 
>     MIMEDocument>>guessTypeFromName: url
>             "guesses a content type from the url"
>             ^MIMEType forFileNameReturnSingleMimeTypeOrDefault: url
> asString asURI
> 
> to 
> 
>     MIMEDocument>>guessTypeFromName: url
>             "guesses a content type from the url"
>             ^MIMEType forFileNameReturnSingleMimeTypeOrDefault: url asString
> 
> (removing asURI), makes it work as expected, answering 'css'.
> 
> 
> Is this a bug?

Yes it is, see:
http://code.google.com/p/pharo/issues/detail?id=2797

Cheers
Philippe





More information about the Pharo-dev mailing list