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

Zach White commented on CB-2415:
--------------------------------

I have created [this|https://github.com/whit1440/CordovaAjaxTest] project to 
show the issue. It authenticates against a server which uses Basic Auth as 
provided by apache .htaccess file. Please clone and try for yourself.

To answer your questions:
1. The issue is with XHR (specifically using jQuery but have tried with 
standard XMLHttpRequest to make sure jQuery was not the problem).
2. I am seeing this in iOS with Cordova 2.2. Android had the known issue prior 
to 2.4.0 if I'm not mistaken, according to the bug I have linked in my 
description.

Thank you!
                
> On iOS the ajax error/fail callback is not called after server returns error 
> code 401/unauthorized
> --------------------------------------------------------------------------------------------------
>
>                 Key: CB-2415
>                 URL: https://issues.apache.org/jira/browse/CB-2415
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.2.0
>         Environment: OSX 10.8.2, Xcode 4.5.1, iOS Simulator 5.0, 5.1, 6.0, 
> cordova 2.2
>            Reporter: Zach White
>            Assignee: Shazron Abdullah
>              Labels: 401, BasicAuth, iOS
>
> I am seeing the same issue as reported in 
> [CB-2284|https://issues.apache.org/jira/browse/CB-2284] also in iOS. Ajax 
> calls with Authorization header set are not returning but are timing out when 
> the authorization credentials are invalid.

--
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