You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jeffrey Heifetz (JIRA)" <ji...@apache.org> on 2013/10/08 21:50:41 UTC

[jira] [Updated] (CB-4939) CLI does not check ownership of .cordova folder before execution

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

Jeffrey Heifetz updated CB-4939:
--------------------------------

          Component/s:     (was: BlackBerry)
                       CLI
    Affects Version/s: 3.1.0
              Summary: CLI does not check ownership of .cordova folder before execution  (was: Accessing the blackberry10.json file before even checking to see if it exists)

The root cause was related to initially running as root which created the .cordova folder as root.

> CLI does not check ownership of .cordova folder before execution
> ----------------------------------------------------------------
>
>                 Key: CB-4939
>                 URL: https://issues.apache.org/jira/browse/CB-4939
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.0.0, 3.1.0
>         Environment: Mac and Windows
>            Reporter: JennyGee
>            Assignee: Jeffrey Heifetz
>             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 was sent by Atlassian JIRA
(v6.1#6144)