Results 1 to 6 of 6

Thread: [2.0.2] Internet Explorer returns error code 1223 for HTTP response code 204

  1. #1
    Sencha User berend's Avatar
    Join Date
    Mar 2007
    Location
    Auckland, NZ
    Posts
    47

    Question [2.0.2] Internet Explorer returns error code 1223 for HTTP response code 204

    Hi Guys,

    Trying to make an app work with IE6. Huge pain, surprisingly ExtJS doesn't give a developer more support in writing browser independent code.

    Anyway, stumbled upon this issue. You will find reports on this all over the net.

    Basically when a POST operation returns 204 No Content, IE translates this to 1223. And the failure method of Ext.Ajax.Request is called. Very annoying.

    Can you guys please fix Ext to ignore 1223? That's another case where the poor developer can become unaware IE is running his app.

  2. #2
    Sencha User
    Join Date
    Sep 2008
    Posts
    10

    Default

    Any help with this issue? It's currently happening to me in IE7 and Ext 2.2 after a simple PUT returning 204.

    It seems that the issue has only been mentioned twice in this forum (this thread and here).

  3. #3
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,248

    Default

    If you change the following in ext-base (line 960), does it resolve your issue:

    Code:
    if ((httpStatus >= 200 && httpStatus < 300) || (Ext.isIE && httpStatus == 1223) {
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  4. #4
    Sencha User
    Join Date
    Sep 2008
    Posts
    10

    Default

    Yes, it does.

  5. #5
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    A quick Google search turned up check-ins of jQuery, Dojo and YUI that all do this check.

    Here is the one from Dojo (most complete I think):

    Code:
    return (stat >= 200 && stat < 300) || // allow any 2XX response code
      stat == 304 || // get it out of the cache
      stat == 1223 || // Internet Explorer mangled the status code
      (!stat && (location.protocol=="file:" || location.protocol=="chrome:"));

  6. #6
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,248

    Default

    Cool, thanks Condor.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •