Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#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 13 years ago by alex

Milestone: 0.4.3
Status: newassigned

the fix looks odd, but workable. I'm marking it for 0.4.3 inclusion.

comment:2 Changed 13 years ago by alex

(In [8031]) refs #2418

comment:3 Changed 13 years ago by alex

Resolution: fixed
Status: assignedclosed

(In [8032]) fixes #2418

comment:4 Changed 13 years ago by Adam Peller

Do we have any idea which versions of IE are affected by this?

comment:5 Changed 12 years ago by (none)

Milestone: 0.4.3

Milestone 0.4.3 deleted

Note: See TracTickets for help on using tickets.