Ticket #2418 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

io.bind: XMLHttpTransport Error: 1223 Unknown (Internet Explorer bug)

Reported by: alain DOT! odea AT! gmail Owned by: alex
Priority: normal Milestone:
Component: IO Version: 0.4.1
Severity: major Keywords: ie, internet explorer, 1223 Unknown, io.bind
Cc:

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

Changed 3 years ago by alex

  • status changed from new to assigned
  • milestone set to 0.4.3

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

Changed 3 years ago by alex

(In [8031]) refs #2418

Changed 3 years ago by alex

  • status changed from assigned to closed
  • resolution set to fixed

(In [8032]) fixes #2418

Changed 3 years ago by peller

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

Changed 3 years ago by anonymous

  • milestone deleted

Milestone 0.4.3 deleted

Note: See TracTickets for help on using tickets.