cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Perry (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-7765) navigator.device.capture.captureImage Throws CAPTURE_INTERNAL_ERR, Cannot Create Cache Folder, Galaxy S5
Date Fri, 10 Oct 2014 18:57:34 GMT
David Perry created CB-7765:
-------------------------------

             Summary: navigator.device.capture.captureImage Throws CAPTURE_INTERNAL_ERR, Cannot
Create Cache Folder, Galaxy S5
                 Key: CB-7765
                 URL: https://issues.apache.org/jira/browse/CB-7765
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android, Plugin Camera, Plugin Media Capture
    Affects Versions: 3.5.0
         Environment: Galaxy S5
            Reporter: David Perry


When using the media-capture or camera plugin, getTempDirectoryPath calls cordova.getActivity().getCacheDir()
which returns /data/data/com.packagename/cache but this path does not exist. The code then
calls File.mkdirs to create the path which calls mkdirErrno which calls Libcore.os.mkdir(path,
S_IRWXU) and that is throwing an exception that is caught and the method silently returns
false. The exception has an errno = 17. 



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