[Pharo-project] Traceback from MIMEDocument>>guessTypeFromName

Tony Fleig tony.fleig at gmail.com
Tue Oct 26 13:01:52 EDT 2010


Ah. Thank you.

I see I should peruse the issues list for problems like this before trying
to figure it out myself.

Regards,
TF

On Tue, Oct 26, 2010 at 8:50 AM, Philippe Marschall <
philippe.marschall at netcetera.ch> wrote:

> 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
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20101026/1f63ddaf/attachment-0001.html>


More information about the Pharo-dev mailing list