[ 
https://issues.apache.org/jira/browse/CB-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser resolved CB-2284.
----------------------------

    Resolution: Fixed

Added the line as suggested, used a modified XHR test from the cordova android 
test directory and some expressjs code to test 401 forbidden.

https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;a=commit;h=56cd24797e2310dd9af4a865102f7c2a31297505
                
> 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