Closed wexi79 closed 1 year ago
This could be extended to checking all the other permissions of the files created too, if needed.
@kitsunet for some reason I can't request reviewers for this PR, but could you look at this?
@kdambekalns what do you mean "remove alignments"? I had to format the code in that way to get it to pass the automatic styling check...
Oh well. Then StyleCI is using default settings…
There should be a .styleci.yml
similar to https://github.com/neos/neos-development-collection/blob/master/.styleci.yml
The Data folder is created (by the setfilepermissions script) under FLOW_PATH_ROOT so what we actually do is test that we can create a similar folder and files into it with the correct permissions.
So basically we are testing that the cli user can access all files and folders in the Neos installation directory, is there something that the cli user should not be able to access in a setup where the cli user has no sudo rights but the initial installation is done by a sysadmin user?
superseded by rewrite in version 6
Added a method that creates a test folder into the Flow root path, creates a test file into the folder and checks that the created file has write permissions for group. Test file and folder are removed after the check, method returns true if group has write permission and false if not.
If group write fails, an error message with instructions is displayed.