-
Notifications
You must be signed in to change notification settings - Fork 55
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
Fixed permissions of shell scripts in binary builds #512
Conversation
@tommaso-borgato I don't understand the details here, I just want to make sure that this is not workaround for something what is actually a bug. Shouldn't |
Or is the executable flag lost when creating tar? |
@mnovak1 the issue here is that classes in it's no surprise to me that the issue is in the only step of the process which is using Java library for creating a this MR is a workaround for the one scenario that we use: creating a tar stream containing a server directory to be sent to the builder image a more comprehensive solution would be try and find and alternative to perhaps we might trace the more comprehensive solution in a separate issue (with lower priority 😄 ) |
From what I can read around, this might be intentional, since permissions are dealt with at the OS level. In such a case there's no issue that should be created externally, maybe an internal one fixed by this very PR. |
Ok, I think that correct fix should retrieve file permission from the file being added into tar archive and set on tar entry. Something like:
wdyt? |
@mnovak1 good idea, going to check |
👍 ...thanks for looking at it. |
9a3f512
to
a75cb23
Compare
@mnovak1 I applied your suggestion and the bug fix is now complete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am approving since this LGTM now. But leaving the last word to @mnovak1 of course :)
Maybe this could be extracted into some utils in the future and maybe we could add a comment identifying the source for such conversion.
LGTM, merging. Thanks @tommaso-borgato ! |
In binary builds from sources, when the source is an already provisioned server (e.g. some "target/server" produced by the
wildfly-maven-plugin
), then execution permissions on ".sh" files are lost;This causes the following error when the POD starts:
This MR just fixes permissions on ".sh" files which is the bare minimum required to have a working server installation;
Please make sure your PR meets the following requirements: