You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Ian Clelland (JIRA)" <ji...@apache.org> on 2014/03/26 18:49:22 UTC

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