Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2284

On Android ICS and JB the ajax error/fail callback is not called after server returns error code 401/unauthorized

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:
      None
    • Environment:

      Android ICS and JB

      Description

      When making an ajax call and the server returns error with code 401 on Android ICS and JB and on others maybe, the error callback is not called unless the request times out.

      Adding call to the base class here seems to fix the issue, but maybe there is a reason for not calling the base class.

      if (token != null)

      { handler.proceed(token.getUserName(), token.getPassword()); }

      else

      { super.onReceivedHttpAuthRequest(view, handler, host, realm); }

        Attachments

          Activity

            People

            • Assignee:
              bowserj Joe Bowser
              Reporter:
              kris_bg Kristian Dimitrov Dimitrov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: