406 Error for XSLT due to ommission of correct/registered MIME type from Accept header
Reported by
argos.ne...@gmail.com,
Aug 30 2017
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063 Steps to reproduce the problem: 1. Navigate to test case: http://staging.anamera.com/3rdPartyBugs/FFdropdown.xml 2. It will request XSLT style sheet FFdropdown.xsl 3. Results in 406 Not Acceptable What is the expected behavior? XSLT style sheet should be loaded and processed by browser. What went wrong? Browser's Accept header for XSLT is non-compliant with RFCs. Browser uses "Accept:text/xml, application/xml, application/xhtml+xml, text/xsl, application/rss+xml, application/atom+xml". However, the correct and registered MIME type would be: "application/xslt+xml". Chrome needs to INCLUDE "application/xslt+xml" in Accept header for XSLT documents. Servers that follow RFCs will offer "application/xslt+xml" and thus not match Chrome's incomplete Accept header - resulting in the 406 error. Did this work before? No Does this work in other browsers? Yes Chrome version: 52.0.2743.116 Channel: stable OS Version: 10.0 Flash Version: Confirmed working correctly in IE, Edge, Netscape. Chrome is the ONLY one that fails.
,
Aug 30 2017
Also, you seem to be using a pretty outdated version of Chrome that has a lot of known security issues, which may get you hacked. I strongly recommend that you update your browser immediately (the bug exists in the new version as well, I tested it). Old browser versions are really dangerous...
,
Aug 30 2017
Sorry - too many issues at the same time. Correct - NOT Netscape, Firefox. Also tested with Chrome 60.0.3112.113, but didn't catch that the bug form autofilled version 52. Yes, confirmed that Safari has same bug - so your hint regaring WebKit might be applicable. Problem with outputting NON-standard MIME type is, that it causes problems with other browsers in other areas. I have no problem with maintaining backward compatibility but there is no valid reason to reject the registered MIME type that dates back several YEARS.
,
Sep 29 2017
|
|||
►
Sign in to add a comment |
|||
Comment 1 by phistuck@gmail.com
, Aug 30 2017