[
https://issues.apache.org/jira/browse/CB-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896359#comment-13896359
]
Edwin Klesman commented on CB-2415:
-----------------------------------
This is also still present in builds using the Cordova CLI version 3.3.1-0.1.2
under iOS 7.
Now I know about the origin of this issue but this one cost us quite some hours
(simply because there were no symptoms, just an AJAX call that went down the
drain without callbacks).
Using async: false in the $.ajax call handled the issue for our situation (a
performant call from a login screen that doesn't really need async) but that is
not really a clean workaround.
At least capturing this issue and make it hookable in the JS layer of Phonegap
should be a very nice solution. Like Zach mentioned.
> 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
> Labels: 401, BasicAuth, core
>
> 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 was sent by Atlassian JIRA
(v6.1.5#6160)