You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Kristian Dimitrov Dimitrov (JIRA)" <ji...@apache.org> on 2013/01/22 14:56:13 UTC
[jira] [Created] (CB-2284) On Android ICS and JB the ajax
error/fail callback is not callsed after server returns error code
401/unauthorized
Kristian Dimitrov Dimitrov created CB-2284:
----------------------------------------------
Summary: On Android ICS and JB the ajax error/fail callback is not callsed 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