You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "JennyGee (JIRA)" <ji...@apache.org> on 2013/09/27 20:42:05 UTC
[jira] [Created] (CB-4939) Accessing the blackberry10.json file
before even checking to see if it exists
JennyGee created CB-4939:
----------------------------
Summary: Accessing the blackberry10.json file before even checking to see if it exists
Key: CB-4939
URL: https://issues.apache.org/jira/browse/CB-4939
Project: Apache Cordova
Issue Type: Bug
Components: BlackBerry
Affects Versions: 3.0.0
Environment: Mac and Windows
Reporter: JennyGee
Fix For: Master
When starting with a brand new fresh install of WebWorks, when a user tries to build their app they get the following error:
ci0000003068684:WindowCovers jgee$ webworks build --release
fs.js:427
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: EACCES, permission denied '/Users/jgee/.cordova/blackberry10.json'
at Object.fs.openSync (fs.js:427:18)
at Object.fs.writeFileSync (fs.js:966:15)
at Object._self.writeToPropertiesFile (/Users/jgee/webworksProjs/WindowCovers/platforms/blackberry10/cordova/lib/utils.js:302:12)
at Object._self.getPropertiesFilePath (/Users/jgee/webworksProjs/WindowCovers/platforms/blackberry10/cordova/lib/utils.js:284:19)
at Object._self.getProperties (/Users/jgee/webworksProjs/WindowCovers/platforms/blackberry10/cordova/lib/utils.js:295:30)
at Object.<anonymous> (/Users/jgee/webworksProjs/WindowCovers/platforms/blackberry10/cordova/lib/build:22:26)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Apparently the .json file is never checked to see if it already exists before trying to access it.
This issue was found on the Mac platform but definitely would be found on Windows as well.
--
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