IE mangles HTTP response status code 204 to 1223
Reported by adevadeh | May 30th, 2008 @ 12:44 PM | in 1.6.1
IE does something very strange when I respond to an AJAX request with code 204. Instead of keeping the 204, the status somehow gets translated to 1223.
This problem is documented in the jQuery Trac as well: http://dev.jquery.com/ticket/1450
To fix this problem prototype should accept 1223 as a valid code and trigger the onSuccess callback.
prototype.js:1296
success: function() {
var status = this.getStatus();
// need to accept 1223 as successful response, as IE translates 204 into 1223!?!?!?!
return !status || (status >= 200 && status < 300) || (status == 1223);
},
If there is no other way to work around this problem, I will submit tests and a patch.
Comments and changes to this ticket
-
Juriy Zaytsev May 30th, 2008 @ 01:39 PM
- → State changed from new to bug
- → Milestone changed from to 1.6.0.3
Both YUI and jQuery normalize this quirk:
-

adevadeh2 June 2nd, 2008 @ 07:39 PM
- no changes were found...
-

-

adevadeh2 June 2nd, 2008 @ 07:40 PM
- no changes were found...
-

-

-
Juriy Zaytsev June 2nd, 2008 @ 11:42 PM
Found relevant ticket in trac (and a patch by Tobie) http://dev.rubyonrails.org/attac...
-
John-David Dalton June 3rd, 2008 @ 11:19 PM
- → Milestone changed from 1.6.0.3 to 1.6.1
I think alot of the ajax status stuff is going to wait til 1.6.1
I just rolled back the status 0, for ftp, file protocol fixes.
I can contribute to the status 0 issue but the other networking oddities I am unfamiliar with.
-
John-David Dalton June 3rd, 2008 @ 11:20 PM
- → Assigned user changed from to John-David Dalton
-
John-David Dalton September 4th, 2008 @ 04:27 PM
- → Tag changed from to ajax needs_patch needs_tests
other duplicate post had some info on it: http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/207-ajax-request-considers-http-204-a-failure-under-ie-only#ticket-207-8
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
The Prototype JavaScript library.
