New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
archive.extracted unzips files with mode 000 in 2016.11 #38384
Comments
@onlyanegg i'm having a hard time replicating this. It looks like your master is a lower version. If you upgrade the master does it then work? Or maybe if you run it with Here is my state file:
And when i run
Also here is a docker container to quickly replicate:
Also is there anything different with my test case then your issue? |
Thanks for taking a look at this @Ch3LL! It seems like this has to do with the combination of my zip archive and 2016.11. I was not able to reproduce it with your test.zip in either your docker container or my environment. When I revert to 2016.3.4, the zip is extracted with sane permissions.
To your question about my master version, I see this behavior in masterless configuration as well. |
Okay great yeah if you can elaborate as to why our exact zip package is failing or can share the zip package so we can try to replicate this that would be great then we can dive deeper into the issue. Might also be useful to do a git bisect to see where it broke but I can definitely do that if i can get a reproducable case. Want to get this fixed up for ya :) |
I have the same issue. I have tried to extract zip archive on linux and windows. test.sls:
On linux looks like:
When i extract archive using unzip directly on machine, looks ok:
On windows files has read-only flags:
When i extract directly on windows:
The same situation when i set "extract_perms" to False
|
@Ch3LL I worked around this by explicitly setting permissions with the file.directory state after extracting. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Description of Issue/Question
archive.extracted
state of zip archive sets file mode to 000 for all files in the archive on 2016.11This works in 2016.3. It sets the directory modes to 755 and file modes to 644.
Setup
hornetq_state.sls
hornetq_pillar.sls
Steps to Reproduce Issue
Versions Report
The text was updated successfully, but these errors were encountered: