Hi Thierry, It may be useful to support exceptions similar to Apache in the future. For now, we should live with strict HTTP 1.1 compliance and see if this cause a blocking issue at some point.
Maybe it would be worth entering a RFE to keep track of it. Could you take care of this? Best regards, Jerome > -----Message d'origine----- > De : Thierry Boileau [mailto:[EMAIL PROTECTED] > Envoyé : samedi 9 décembre 2006 00:41 > À : [email protected] > Objet : Re: Returning 406 when serving text/css + en-(upper > case country) > > Hi again, > > the current algorithm behaviour respects strictly HTTP as you > said, Jerome. > I had a look to the Apache implementation of content > negotiation and they faced the same issue. > They decided to enter another parameter allowing (or not) the > Apache server to provide a document that does > not explicitly match the client's request. > > What is your thinking about? > > > (see : > - http://httpd.apache.org/docs/2.0/content-negotiation.html > - negotiation algorithm : > http://httpd.apache.org/docs/2.0/content-negotiation.html#algorithm > - language negotiation exception: > http://httpd.apache.org/docs/2.0/content-negotiation.html#exceptions) > > > Best regards, > Thierry > > > On 12/9/06, Jerome Louvel <[EMAIL PROTECTED]> wrote: > > > Hi again, > > The exception that was thrown below is not fixed in SVN > and the Web site has > been updated. Please let us know if you still get this > 500 errors. > > Also, there is a question when the representation is in > "en-us" for example > if the browser only accepts "en-nz". Currently a 406 > status is returned when > it "feels" that you should get the "en-us" document. > Thierry is currently > looking into this but the HTTP seems to be strict about > this case: > http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4 > > Best regards, > Jerome > > > -----Message d'origine----- > > De : Jerome Louvel > > Envoyé : vendredi 8 décembre 2006 23:33 > > À : [email protected] > > Objet : RE: Returning 406 when serving text/css + en-(upper > > case country) > > > > > > Hi AJ, > > > > Thanks for reporting this. FYI, here is the stack trace I see > > on the server. I'm going to fix the parsing, it may be due to > > the lack of leading 0 for the quality values. > > > > Thanks, > > Jerome > > > > > > 8 déc. 2006 19:14:01 com.noelios.restlet.StatusFilter doHandle > > GRAVE: Unhandled exception or error intercepted > > java.lang.IllegalArgumentException : An exception occured > > during media type preferences parsing. Header: text/html, > > image/gif, image/jpeg, *; q=.2, */*; q=.2. Ignoring header. > > at > > > com.noelios.restlet.util.PreferenceUtils.parseMediaTypes (Prefe > > renceUtils.java:300) > > at > > com.noelios.restlet.http.HttpRequest.getClientInfo(HttpRequest > > .java:144) > > at > org.restlet.data.Response.setEntity(Response.java:284) > > at org.restlet.Handler.handleGet(Handler.java:239) > > at org.restlet.Handler.handle(Handler.java:120) > > at org.restlet.Filter.doHandle(Filter.java:108) > > at org.restlet.Filter.handle(Filter.java :150) > > at org.restlet.Chainer.handle(Chainer.java:75) > > at org.restlet.Filter.doHandle(Filter.java:108) > > at org.restlet.Filter.handle(Filter.java:150) > > at org.restlet.Filter.doHandle (Filter.java:108) > > at > > > com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:87) > > at org.restlet.Filter.handle(Filter.java:150) > > at org.restlet.Filter.doHandle(Filter.java :108) > > at org.restlet.Filter.handle(Filter.java:150) > > at org.restlet.Filter.doHandle(Filter.java:108) > > at org.restlet.Filter.handle(Filter.java:150) > > at > > > com.noelios.restlet.application.ApplicationHelper.handle (Appli > > cationHelper.java:105) > > at org.restlet.Application.handle(Application.java:288) > > at org.restlet.Filter.doHandle(Filter.java:108) > > at org.restlet.Filter.handle(Filter.java :150) > > at org.restlet.Chainer.handle(Chainer.java:75) > > at org.restlet.Filter.doHandle(Filter.java:108) > > at org.restlet.Filter.handle(Filter.java:150) > > at org.restlet.Chainer.handle (Chainer.java:75) > > at org.restlet.Filter.doHandle(Filter.java:108) > > at > > > com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:87) > > at org.restlet.Filter.handle(Filter.java :150) > > at > > com.noelios.restlet.container.ContainerHelper.handle(Container > > Helper.java:113) > > at org.restlet.Container.handle(Container.java:140) > > at org.restlet.Server.handle (Server.java:266) > > at > com.noelios.restlet.ServerHelper.handle(ServerHelper.java:97) > > at > > com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHel > > per.java:87) > > at > > com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(Si > > mpleProtocolHandler.java:66) > > at simple.http.Dispatcher.run(Dispatcher.java:83) > > at simple.util.process.Daemon.execute (Daemon.java:121) > > at simple.util.process.Daemon.run(Daemon.java:106) > > > > > > Best regards, > > Jerome > > > > > -----Message d'origine----- > > > De : A.J. Barnes [mailto: > [EMAIL PROTECTED] > > > Envoyé : vendredi 8 décembre 2006 20:58 > > > À : [email protected] > > > Objet : RE: Returning 406 when serving text/css + en-(upper > > > case country) > > > > > > My IE6 is now giving me a 500 error, through > Firefox is still > > > going well! > > > > > > AJ > > > > > >

