Closed awatson1978 closed 7 years ago
Thanks, Abigail. @ekatek is looking into this.
I don't think that there is an intention to preserve permissions on server-side static assets. The only documented APIs for accessing them are Assets.getText and Assets.getBinary, for which permissions are irrelevant anyway.
A possible future improvement to the Assets API that provides supported filesystem access to assets might want to include this feature, though.
Any news on this? I'd like to call an executable via spawn
from within a server-side method, and said executable is in the private
folder, which means it ends up in assets/app/
, but unfortunately it loses its +x
which leads to EACCES
errors. Alternatively, is there a better place to store executables alongside Meteor apps?
Hi all - as mentioned in https://github.com/meteor/meteor/issues/2595#issuecomment-72788096, preserving permissions on server side static assets is not currently functionality that is provided by Meteor (the Assets API does not support this). If the Assets API is re-visited at some point in the future this functionality can be considered. If preserving/manipulating file permissions is something that is needed, then this would need to be handled outside of Meteor (via the Node API for example). As part of the on-going old issue cleanup process, I'll close this off. Thanks for reporting this originally!
The old github-based package management system preserved chmod file permissions, whereas the Unipackage system doesn't. Bug reproduction as follows:
This is related to the Velocity project and relevant to any packages that launch external scripts, such as Selenium/Nightwatch, PhantomJS, etc.