[ 
https://issues.apache.org/jira/browse/CB-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13563209#comment-13563209
 ] 

Joe Bowser commented on CB-2284:
--------------------------------

It doesn't have a status if you use a vanilla XHR.  It should have 401.
                
> 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

Reply via email to