incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Lunny (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-250) [android] app crashes when DNS lookup fails
Date Mon, 13 Feb 2012 22:45:05 GMT
[android] app crashes when DNS lookup fails
-------------------------------------------

                 Key: CB-250
                 URL: https://issues.apache.org/jira/browse/CB-250
             Project: Apache Callback
          Issue Type: Bug
          Components: Android
    Affects Versions: 1.4.0
            Reporter: Andrew Lunny
            Assignee: Joe Bowser


If the DNS lookup on a link to loadUrl fails, the app exits.

Fil traced this to the onReceivedError method in CordovaWebViewClient - the ERROR_HOST_LOOKUP
error code is being passed to that method, which is passed on to the context, and the app
crashes.
http://developer.android.com/reference/android/webkit/WebViewClient.html#ERROR_HOST_LOOKUP

Expected behavior in this case is probably for an error to be reported back to the web view,
and the initial page to be loaded back once more.

app demonstrating failure (has wildcard on whitelist): https://build.phonegap.com/apps/74059/share
source code: https://gist.github.com/1821047

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message