cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse MacFadyen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-11842) Files with complex names cannot be resolved
Date Tue, 13 Sep 2016 18:22:20 GMT

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

Jesse MacFadyen updated CB-11842:
---------------------------------
    Description: 
I have photos on my android device named like this (don't ask why): "https%3A%2F%2Fapk.test.com%2FContent%2FUploaded%2FSurveyPhotos%2Fe77835b6-261d-45b3-8be6-9f9e654b0230.png"

If I use camera plugin to get such file, using code: 
{code}
            navigator.camera.getPicture(callback, onFail, {
                quality: 75,
                sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
                encodingType: Camera.EncodingType.PNG,
                targetWidth:1000,
                targetHeight: 1000,
                saveToPhotoAlbum: false,
                mediaType: Camera.MediaType.PICTURE
            });
{code}
Image is copied into my app cache folder with the same name, afterwards when I try to access
this image by
window.resolveLocalFileSystemURL(sourceFile, fileFound, fileNotFound); 
I always get file not found error.

On previous camera plugin version this file in cache folder was always renamed to "modified.png"
and so could be resolved successfully. But now after update I have such bug.

It is not critical since it works with normal file names, but it still can happen and I see
no workaround in this case.

  was:
I have photos on my android device named like this (don't ask why): "https%3A%2F%2Fapk.test.com%2FContent%2FUploaded%2FSurveyPhotos%2Fe77835b6-261d-45b3-8be6-9f9e654b0230.png"

If I use camera plugin to get such file, using code: 
            navigator.camera.getPicture(callback, onFail, {
                quality: 75,
                sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
                encodingType: Camera.EncodingType.PNG,
                targetWidth:1000,
                targetHeight: 1000,
                saveToPhotoAlbum: false,
                mediaType: Camera.MediaType.PICTURE
            });
Image is copied into my app cache folder with the same name, afterwards when I try to access
this image by
window.resolveLocalFileSystemURL(sourceFile, fileFound, fileNotFound); 
I always get file not found error.

On previous camera plugin version this file in cache folder was always renamed to "modified.png"
and so could be resolved successfully. But now after update I have such bug.

It is not critical since it works with normal file names, but it still can happen and I see
no workaround in this case.


> Files with complex names cannot be resolved
> -------------------------------------------
>
>                 Key: CB-11842
>                 URL: https://issues.apache.org/jira/browse/CB-11842
>             Project: Apache Cordova
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Plugin File
>         Environment: Android
>            Reporter: Taras Kravchuk
>            Priority: Minor
>
> I have photos on my android device named like this (don't ask why): "https%3A%2F%2Fapk.test.com%2FContent%2FUploaded%2FSurveyPhotos%2Fe77835b6-261d-45b3-8be6-9f9e654b0230.png"
> If I use camera plugin to get such file, using code: 
> {code}
>             navigator.camera.getPicture(callback, onFail, {
>                 quality: 75,
>                 sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
>                 encodingType: Camera.EncodingType.PNG,
>                 targetWidth:1000,
>                 targetHeight: 1000,
>                 saveToPhotoAlbum: false,
>                 mediaType: Camera.MediaType.PICTURE
>             });
> {code}
> Image is copied into my app cache folder with the same name, afterwards when I try to
access this image by
> window.resolveLocalFileSystemURL(sourceFile, fileFound, fileNotFound); 
> I always get file not found error.
> On previous camera plugin version this file in cache folder was always renamed to "modified.png"
and so could be resolved successfully. But now after update I have such bug.
> It is not critical since it works with normal file names, but it still can happen and
I see no workaround in this case.



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

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


Mime
View raw message