cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nithin (JIRA)" <>
Subject [jira] [Commented] (CB-10852) Android Webview loadUrl length?
Date Mon, 21 Mar 2016 07:12:25 GMT


Nithin commented on CB-10852:

[~nikhilkh][~bowserj] did more debug on this..

Special character/Control character issue:
1)Cordova 3.5.0 allows Special character/Control character(line feed) in webview loadUrl function..
2)Cordova 4.0.2+ does not allow Special character/Control character(line feed)  in webview
loadUrl function.(Generally \n should not be part URL). 

Not sure on which exact cordova 3.5.0 +  to  4.0.2 version issues started..

Any thoughts why this behaviour in different cordova versions? where is the filtering done(Could
not find any difference in loadUrl code at java) is JS level invloved? pls share your thoughts..

Length issue:
22972395  ~22mb string data giving one shot will have end up having OutOfMemoryError.
3-18 16:39:57.332 E/ACRA    (18797): java.lang.OutOfMemoryError: Failed to allocate a 68917332
byte allocation with 16777216 free bytes and 56MB until OOM
03-18 16:39:57.332 E/ACRA    (18797):    at java.lang.AbstractStringBuilder.enlargeBuffer(
03-18 16:39:57.332 E/ACRA    (18797):    at java.lang.AbstractStringBuilder.append0(
03-18 16:39:57.332 E/ACRA    (18797):    at java.lang.StringBuilder.append(
Need a  design(JS level query or java level split) for this.. highly needed for client scalability
in long usage..


> Android Webview loadUrl length?
> -------------------------------
>                 Key: CB-10852
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>         Environment: Using Android Cordova with Sencha touch framework.
>            Reporter: Nithin
>              Labels: triaged
> Hi Folks,
>  If url length is 57751 the data is loaded, but if url length is 177263 the data is not
> Basically i am trying to pass the huge data from java to JS/HTML(JSON) level using loadUrl.
> Is there any upper cap limit for URL?( Integer.MAX_VALUE, which is 2^31 - 1 (or approximately
2 billion.So you can have a String of 2,147,483,647 characters)?
> Do i need to spilt the data and send or any other way to send huge data to 
> Thanks
> Nithin 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message