[jira] [Commented] (CB-6347) Camera->"Copy Image" failed !
[ https://issues.apache.org/jira/browse/CB-6347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13948208#comment-13948208 ] Ian Clelland commented on CB-6347: -- I think this is because there actually *is* a cycle in the filesystem object (which is being rendered to JSON by the "logCallback" part of the test) I've come across this before in other situations; it's reasonable to expect people to want to serialize FileEntry (and related) objects. I've created CB-6352 to track the JSON issue. > Camera->"Copy Image" failed ! > - > > Key: CB-6347 > URL: https://issues.apache.org/jira/browse/CB-6347 > Project: Apache Cordova > Issue Type: Bug > Components: iOS, mobile-spec, Plugin Camera, Plugin File >Affects Versions: 3.4.0 > Environment: org.apache.cordova.camera version: 0.2.9-dev >Reporter: glmnbeyond >Assignee: Ian Clelland > > Steps to reproduce it: > 1) Using createmobilespec.sh to create mobilespec project > 2) Load mobile-spec tests > 3) Navigate to "Camera" and "getPicture()" > 4) Click "Copy Image" > Results: > Copy image succeeded, but no results got outputted! > Expected: > FileEntry.copyTo success! > If I try catch the function log, there is an exception says "TypeError: > JSON.stringify cannot serialize cyclic structures" -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-6347) Camera->"Copy Image" failed !
[ https://issues.apache.org/jira/browse/CB-6347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13949235#comment-13949235 ] Ian Clelland commented on CB-6347: -- Hi, [~glmnbeyond] -- can you check this again with the dev version of File? The fix for CB-6352 should have resolved this. I'm not seeing the JSON error any more on my mobilespec. > Camera->"Copy Image" failed ! > - > > Key: CB-6347 > URL: https://issues.apache.org/jira/browse/CB-6347 > Project: Apache Cordova > Issue Type: Bug > Components: iOS, mobile-spec, Plugin Camera, Plugin File >Affects Versions: 3.4.0 > Environment: org.apache.cordova.camera version: 0.2.9-dev >Reporter: glmnbeyond >Assignee: Ian Clelland > > Steps to reproduce it: > 1) Using createmobilespec.sh to create mobilespec project > 2) Load mobile-spec tests > 3) Navigate to "Camera" and "getPicture()" > 4) Click "Copy Image" > Results: > Copy image succeeded, but no results got outputted! > Expected: > FileEntry.copyTo success! > If I try catch the function log, there is an exception says "TypeError: > JSON.stringify cannot serialize cyclic structures" -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-6347) Camera->"Copy Image" failed !
[ https://issues.apache.org/jira/browse/CB-6347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13950278#comment-13950278 ] glmnbeyond commented on CB-6347: Hi [~iclelland], I think your commit fixed this problem. After I patched CB-6352, the test can pass and there is no JSON error any more. Many thanks to your :) > Camera->"Copy Image" failed ! > - > > Key: CB-6347 > URL: https://issues.apache.org/jira/browse/CB-6347 > Project: Apache Cordova > Issue Type: Bug > Components: iOS, mobile-spec, Plugin Camera, Plugin File >Affects Versions: 3.4.0 > Environment: org.apache.cordova.camera version: 0.2.9-dev >Reporter: glmnbeyond >Assignee: Ian Clelland > > Steps to reproduce it: > 1) Using createmobilespec.sh to create mobilespec project > 2) Load mobile-spec tests > 3) Navigate to "Camera" and "getPicture()" > 4) Click "Copy Image" > Results: > Copy image succeeded, but no results got outputted! > Expected: > FileEntry.copyTo success! > If I try catch the function log, there is an exception says "TypeError: > JSON.stringify cannot serialize cyclic structures" -- This message was sent by Atlassian JIRA (v6.2#6252)