[
https://issues.apache.org/jira/browse/CB-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kristian Dimitrov Dimitrov updated CB-2284:
-------------------------------------------
Summary: On Android ICS and JB the ajax error/fail callback is not called
after server returns error code 401/unauthorized (was: On Android ICS and JB
the ajax error/fail callback is not callsed after server returns error code
401/unauthorized)
> On Android ICS and JB the ajax error/fail callback is not called after server
> returns error code 401/unauthorized
> -----------------------------------------------------------------------------------------------------------------
>
> Key: CB-2284
> URL: https://issues.apache.org/jira/browse/CB-2284
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 2.3.0
> Environment: Android ICS and JB
> Reporter: Kristian Dimitrov Dimitrov
> Assignee: Joe Bowser
>
> 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|https://github.com/apache/incubator-cordova-android/blob/master/framework/src/org/apache/cordova/CordovaWebViewClient.java#L228]
> 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);
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira