#2418 closed defect (fixed)
io.bind: XMLHttpTransport Error: 1223 Unknown (Internet Explorer bug)
Reported by: | alain DOT! odea AT! gmail | Owned by: | alex |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | IO | Version: | 0.4.1 |
Keywords: | ie, internet explorer, 1223 Unknown, io.bind | Cc: | |
Blocked By: | Blocking: |
Description
This is technically an IE bug, but since it's extremely unlikely that the agile giant will actually fix it I'm posting it here.
Sometimes IE translates HTTP 204 (No Content) into its own internal Status Code 1223. This causes BrowserIO to indicate an error condition in the response.
Status Code 1223 appears to be related to user-cancellation of requests. It appears on MSDN related to canceled Shutdown requests.
I patched this in my own environment by adding another allowed http.status to doLoad().
Here is my patch:
Index: dojo/src/io/BrowserIO.js =================================================================== --- dojo/src/io/BrowserIO.js (0.4.1 Kitchen Sink) +++ dojo/src/io/BrowserIO.js (working copy) @@ -267,6 +267,7 @@ function doLoad(kwArgs, http, url, query, useCache) { if( ((http.status>=200)&&(http.status<300))|| // allow any 2XX response code (http.status==304)|| // get it out of the cache + (http.status==1223)|| // Internet Explorer mangled the status code (location.protocol=="file:" && (http.status==0 || http.status==undefined))|| (location.protocol=="chrome:" && (http.status==0 || http.status==undefined)) ){
Change History (5)
comment:1 Changed 14 years ago by
Milestone: | → 0.4.3 |
---|---|
Status: | new → assigned |
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
the fix looks odd, but workable. I'm marking it for 0.4.3 inclusion.