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

Benn Mapes commented on CB-2736:
--------------------------------

Checking the mobile spec tests this is the expected behavior of 
resolveLocalFileSystemURI "File API LocalFileSystem 
window.resolveLocalFileSystemURI should error (ENCODING_ERR) when resolving 
invalid URI with leading /."

Not sure what the fix for this should be. Changing the uri that is returned by 
getPicture or resolving '/' to '///' in the resolveFileSystemURI (which would 
cause the above test to fail).
                
> resolveLocalFileSystemURI from camera.getPicture(function(imageURI)); returns 
> error 5.
> --------------------------------------------------------------------------------------
>
>                 Key: CB-2736
>                 URL: https://issues.apache.org/jira/browse/CB-2736
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP8
>    Affects Versions: 2.5.0
>         Environment: Tested on Windows Phone 8
>            Reporter: Dimitri Adamou
>            Assignee: Benn Mapes
>              Labels: camera, resolveLocalFileSystemURI, window, windows-phone
>
> Hey there, found an issue regarding camera.getPhoto(); on the success 
> callback when using the imageURI, window.resolveLocalFileSystemURI(imageURI); 
> will return error 5, however by prepending "//" to the imageURI, behaviour 
> continues on as normal.
> Alerting the imageURI shows it as /CapturedImagesCache/, so I am assuming by 
> prepending // (therefore making it ///CapturedImagesCache/) makes it resolve 
> to the correct URI
> http://stackoverflow.com/questions/15072843/resolvelocalfilesystemuri-error-code-5-windows-phone-7-phonegap/15536795#15536795

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

Reply via email to