[jira] [Commented] (CB-13801) Fail to restore plugins with relative path

2021-08-19 Thread Elizabeth Cho (Jira)


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

Elizabeth Cho commented on CB-13801:


Is there any updates? 

> Fail to restore plugins with relative path
> --
>
> Key: CB-13801
> URL: https://issues.apache.org/jira/browse/CB-13801
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-lib
>Reporter: Michael Goffioul
>Priority: Major
>
> 1. Create a cordova project
> 2. Add android platform
> 3. Add a local plugin using a relative path: {{cordova plugin add 
> myplugins/testplugin}}
> 4. Delete directories platforms/ and plugins/
> 5. Prepare android: {{cordova prepare android}}
> Cordova will fail to restore the local plugin. The plugin has been added to 
> {{package.json}} using the spec {{file:myplugins/testplugin}} and the 
> restoration utility is unable to handle such URL. Note that {{config.xml}} 
> contains the spec {{myplugins/testplugin}} (that is, without the file: 
> scheme), but the one in {{package.json}} takes precedence.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-9578) Document link generate wrong link in some condition.

2015-08-30 Thread Youngho Cho (JIRA)
Youngho Cho created CB-9578:
---

 Summary: Document link generate wrong link in some condition.
 Key: CB-9578
 URL: https://issues.apache.org/jira/browse/CB-9578
 Project: Apache Cordova
  Issue Type: Bug
  Components: Docs
Affects Versions: Master
Reporter: Youngho Cho
Priority: Minor


During translate the document to Korean, I found a strange behavior abut link 
generation.

For some head words in pages we have,  for example
# 플랫폼 가이드  --> A
# 안드로이드 플랫폼 가이드 --> B
# 윈도우폰 8 플랫폼 가이드 --> C
# iOS 플랫폼 가이드  --> D
---
the link for A, C, D are generated correctly like

플랫폼 가이드
윈도우폰 8 플랫폼 가이드
iOS 플랫폼 가이드

but for B, the link generated likes
안드로이드 플랫폼 가이드  which I expect 안드로이드 플랫폼 가이드.

Looks like the duplicated part of key word followed by a number or english 
alphabet then no problem but it is followed by other charcter then the link is 
generated for the duplcated part key word only not for whole key word.


  





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-2787) PhoneGap FileTransfer.Download more than 300 files

2013-11-11 Thread Cho (JIRA)

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

Cho commented on CB-2787:
-

Hi,

var ft = new FileTransfer();

ft.download(sorceURI, targetURI, function(entry)
{
//call your own function. 
// the magic line 
entry = null; }
);

Not sure how much I can help but basically it is at javascript level that I am 
setting it to null. Not sure how doesn't all this related way back to JAVA 
though.

The problem is re-occur after the new plugin adopt mentioned by Gregor Gabriel? 
For mine, I didn't adopt the new plugin provided.

I can't guarantee but most likely I am downloading from https as well and 
didn't hit any problem.



> PhoneGap FileTransfer.Download more than 300 files
> --
>
> Key: CB-2787
> URL: https://issues.apache.org/jira/browse/CB-2787
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android, Plugin File Transfer
>Affects Versions: 2.5.0
>Reporter: Cho
>Assignee: Ian Clelland
>
> I had tried to download more than 300 files and then it hit error after that. 
> Seems like some IO Connection was not properly closed. I wrote a small code 
> to test it out. 
> Any idea? How to file a report or get a source of phonegap to check the real 
> cause?
> {code}
> var counter = 500;
> function DownloadFile() {
> if (counter == 0) {
> DownloadComplete();
> return;
> }
> var ft = new FileTransfer();
> var downloadUrl = "";
> var dlPath = ""
> ft.download(downloadUrl, dlPath, function(entry) {
> counter--;
> UpdateProgress();
> DownloadFile();
> }, function(error) {
> DownloadFailed();
> }, true);
> }
> {code}
> note:  and  is alright because it was it failed when the 
> counter goes until 300+.
> {code}
> 03-14 08:35:09.706: E/FileTransfer(24867): 
> {"target":"","source":"","http_status":200,"code":1}
> 03-14 08:35:09.706: E/FileTransfer(24867): java.io.FileNotFoundException: 
> : open failed: EMFILE (Too many open files)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.IoBridge.open(IoBridge.java:416)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.io.FileOutputStream.(FileOutputStream.java:88)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.io.FileOutputStream.(FileOutputStream.java:73)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> org.apache.cordova.FileTransfer$4.run(FileTransfer.java:685)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.lang.Thread.run(Thread.java:856)
> 03-14 08:35:09.706: E/FileTransfer(24867): Caused by: 
> libcore.io.ErrnoException: open failed: EMFILE (Too many open files)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.Posix.open(Native Method)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.IoBridge.open(IoBridge.java:400)
> 03-14 08:35:09.706: E/FileTransfer(24867): ... 6 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (CB-2787) PhoneGap FileTransfer.Download more than 300 files

2013-08-25 Thread Cho (JIRA)

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

Cho commented on CB-2787:
-

Sorry, doesn't check my secondary mail that frequent.

Finally some news from here huh..

I think I attached the log from very beginning. Maybe at the forum. It does 
look like the same produced by Andrew.

Out of curiosity, how can I have these fixes? 

I do able to get around with only ONE line of code.. (SERIOUSLY).. By luck 
though..

Sorry I doesn't tell about this solution before this, as not one really go and 
check and I fed up.

Here is the small snippet.

var ft = new FileTransfer();

ft.download(sorceURI, targetURI, function(entry){
  //call your own function.

  // the magic line
  entry = null;
});

the error gone and succeed with all the download. (My apps required to download 
1000+ of file).. Tested :)

hope this help.

> PhoneGap FileTransfer.Download more than 300 files
> --
>
> Key: CB-2787
> URL: https://issues.apache.org/jira/browse/CB-2787
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 2.5.0
>Reporter: Cho
>Assignee: Ian Clelland
>
> I had tried to download more than 300 files and then it hit error after that. 
> Seems like some IO Connection was not properly closed. I wrote a small code 
> to test it out. 
> Any idea? How to file a report or get a source of phonegap to check the real 
> cause?
> {code}
> var counter = 500;
> function DownloadFile() {
> if (counter == 0) {
> DownloadComplete();
> return;
> }
> var ft = new FileTransfer();
> var downloadUrl = "";
> var dlPath = ""
> ft.download(downloadUrl, dlPath, function(entry) {
> counter--;
> UpdateProgress();
> DownloadFile();
> }, function(error) {
> DownloadFailed();
> }, true);
> }
> {code}
> note:  and  is alright because it was it failed when the 
> counter goes until 300+.
> {code}
> 03-14 08:35:09.706: E/FileTransfer(24867): 
> {"target":"","source":"","http_status":200,"code":1}
> 03-14 08:35:09.706: E/FileTransfer(24867): java.io.FileNotFoundException: 
> : open failed: EMFILE (Too many open files)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.IoBridge.open(IoBridge.java:416)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.io.FileOutputStream.(FileOutputStream.java:88)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.io.FileOutputStream.(FileOutputStream.java:73)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> org.apache.cordova.FileTransfer$4.run(FileTransfer.java:685)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.lang.Thread.run(Thread.java:856)
> 03-14 08:35:09.706: E/FileTransfer(24867): Caused by: 
> libcore.io.ErrnoException: open failed: EMFILE (Too many open files)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.Posix.open(Native Method)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.IoBridge.open(IoBridge.java:400)
> 03-14 08:35:09.706: E/FileTransfer(24867): ... 6 more
> {code}

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


[jira] [Reopened] (CB-2787) PhoneGap FileTransfer.Download more than 300 files

2013-04-10 Thread Cho (JIRA)

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

Cho reopened CB-2787:
-


> PhoneGap FileTransfer.Download more than 300 files
> --
>
> Key: CB-2787
> URL: https://issues.apache.org/jira/browse/CB-2787
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 2.5.0
>Reporter: Cho
>Assignee: Filip Maj
>
> I had tried to download more than 300 files and then it hit error after that. 
> Seems like some IO Connection was not properly closed. I wrote a small code 
> to test it out. 
> Any idea? How to file a report or get a source of phonegap to check the real 
> cause?
> {code}
> var counter = 500;
> function DownloadFile() {
> if (counter == 0) {
> DownloadComplete();
> return;
> }
> var ft = new FileTransfer();
> var downloadUrl = "";
> var dlPath = ""
> ft.download(downloadUrl, dlPath, function(entry) {
> counter--;
> UpdateProgress();
> DownloadFile();
> }, function(error) {
> DownloadFailed();
> }, true);
> }
> {code}
> note:  and  is alright because it was it failed when the 
> counter goes until 300+.
> {code}
> 03-14 08:35:09.706: E/FileTransfer(24867): 
> {"target":"","source":"","http_status":200,"code":1}
> 03-14 08:35:09.706: E/FileTransfer(24867): java.io.FileNotFoundException: 
> : open failed: EMFILE (Too many open files)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.IoBridge.open(IoBridge.java:416)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.io.FileOutputStream.(FileOutputStream.java:88)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.io.FileOutputStream.(FileOutputStream.java:73)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> org.apache.cordova.FileTransfer$4.run(FileTransfer.java:685)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.lang.Thread.run(Thread.java:856)
> 03-14 08:35:09.706: E/FileTransfer(24867): Caused by: 
> libcore.io.ErrnoException: open failed: EMFILE (Too many open files)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.Posix.open(Native Method)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.IoBridge.open(IoBridge.java:400)
> 03-14 08:35:09.706: E/FileTransfer(24867): ... 6 more
> {code}

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


[jira] [Commented] (CB-2787) PhoneGap FileTransfer.Download more than 300 files

2013-04-07 Thread Cho (JIRA)

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

Cho commented on CB-2787:
-

If you read the code properly, it is serialized. Download file is a self 
calling function where it only callback it self when come into download success 
routine. When it check counter == 0 means finish, then it will call 
DownloadComplete instead.

Let me know if I am doing it wrong.

Thanks.

function DownloadFile() {
  if (counter == 0) {
DownloadComplete();
return;
  }

  var ft = new FileTransfer();
  var downloadUrl = "";
  var dlPath = ""

ft.download(downloadUrl, dlPath, function(entry) {
counter--;
UpdateProgress();
DownloadFile();
  }, function(error) {
DownloadFailed();
  }, true);
}

Regards,
Cho

> PhoneGap FileTransfer.Download more than 300 files
> --
>
> Key: CB-2787
> URL: https://issues.apache.org/jira/browse/CB-2787
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 2.5.0
>Reporter: Cho
>Assignee: Filip Maj
>
> I had tried to download more than 300 files and then it hit error after that. 
> Seems like some IO Connection was not properly closed. I wrote a small code 
> to test it out. 
> Any idea? How to file a report or get a source of phonegap to check the real 
> cause?
> {code}
> var counter = 500;
> function DownloadFile() {
> if (counter == 0) {
> DownloadComplete();
> return;
> }
> var ft = new FileTransfer();
> var downloadUrl = "";
> var dlPath = ""
> ft.download(downloadUrl, dlPath, function(entry) {
> counter--;
> UpdateProgress();
> DownloadFile();
> }, function(error) {
> DownloadFailed();
> }, true);
> }
> {code}
> note:  and  is alright because it was it failed when the 
> counter goes until 300+.
> {code}
> 03-14 08:35:09.706: E/FileTransfer(24867): 
> {"target":"","source":"","http_status":200,"code":1}
> 03-14 08:35:09.706: E/FileTransfer(24867): java.io.FileNotFoundException: 
> : open failed: EMFILE (Too many open files)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.IoBridge.open(IoBridge.java:416)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.io.FileOutputStream.(FileOutputStream.java:88)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.io.FileOutputStream.(FileOutputStream.java:73)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> org.apache.cordova.FileTransfer$4.run(FileTransfer.java:685)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> java.lang.Thread.run(Thread.java:856)
> 03-14 08:35:09.706: E/FileTransfer(24867): Caused by: 
> libcore.io.ErrnoException: open failed: EMFILE (Too many open files)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.Posix.open(Native Method)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
> 03-14 08:35:09.706: E/FileTransfer(24867): at 
> libcore.io.IoBridge.open(IoBridge.java:400)
> 03-14 08:35:09.706: E/FileTransfer(24867): ... 6 more
> {code}

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


[jira] [Created] (CB-2787) PhoneGap FileTransfer.Download more than 300 files

2013-03-24 Thread Cho (JIRA)
Cho created CB-2787:
---

 Summary: PhoneGap FileTransfer.Download more than 300 files
 Key: CB-2787
 URL: https://issues.apache.org/jira/browse/CB-2787
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS
Affects Versions: 2.5.0
Reporter: Cho
Assignee: Filip Maj


https://groups.google.com/forum/?fromgroups=#!topic/phonegap/FxCP8pPtzFk

You may refer to the link above.

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