|
You're right, Graeme. I tested the toy app with other browsers, no such an error occurred Cheers, After FF3 Day this is now a big problem for me Mase - a workaround is to remove "xml" from the list of mime types: grails.mime.types = [ html: ['text/html','application/xhtml+xml'], Thanks Graeme, seems to fix the problem for now. One more issue is that when you comment out the xml line workaround - you then break IE6 so it no longer works. No longer works in what way? It should have no effect Please note that the withFormat tag will always render an xml file, rather than the HTML file, even when the XML line is removed. We have to set the format=html or add the .html extension to see our GSP pages Firefox sends a header as text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 My hunch is that the parsing of this request header is being processed as text/html - 0 which automatically gives xml precedence over any other defined types. not just Firefox 3 I get this with Firefox/2.0.0.14 (Linux) I am using
Graeme Rocher made changes - 21/Aug/08 05:28 AM
Just a few implementation notes. We were defaulting to a q value of 0, which is incorrect according to the spec. So we now default to 1.0 which gives the correct precedence order in Firefox 3, but incorrect in Firefox 2. However, more specific XML types like application/xhtml+xml now take precendence over less specific ones if they have the same q value so this fixes the issue in Firefox 2. If others have problems in different browsers please open separate issues. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
Yes its related to usage of firefox 3, we will fix it soon, the error doesn't occur in other browsers