-
Notifications
You must be signed in to change notification settings - Fork 937
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
Incorrect file permissions in 2.8.0 #1489
Comments
This reverts commit 0d30c19. Pending resolution of mikel/mail#1489
This reverts commit 0d30c19. Pending resolution of mikel/mail#1489
Any updates on this? |
With this issue unresolved in the released 2.8.0 gem, the current version of the mail gem is unusable in setups requiring read-access to others (e.g. in cases where the gem is installed by a different user than the one running the application). Could you possible release a new version of the mail gem to rubygems which fixes the file permissions and set all files to be readable by everyone, similar to all the other files in the gem? |
Hey @mikel , I believe this issue merits urgent attention and does not appear to be something that we can contribute to - file permissions in git seem to be correct, and this seems to be something related to how you cut releases that isn't visible to anyone else to assist in fixing it. This was reported prior to 2.8.0 being released and it seems to have been reasonable justification to hold back that release, but it doesn't seem to have stood out in the list of open issues enough for that to happen, which is why I'm trying to call some more direct attention to it here. Thanks for your help and your work on this project :) |
I also checked yesterday and I can confirm permissions are correct in the repository. It's something on the release process that messed with it somehow. |
We've also been bitten by this. We've downgraded to 2.7.1 for now. Another workaround was to fix the permissions ourselves within the docker container. A bit hacky, but works. |
Also having issues, reverting to 2.7.1. |
If you need to fix permissions after the installation, run |
Find non-world readable files: $ find /var/lib/gems/2.7.0/gems/mail-2.8.0 -not -perm -4 -ls The dat file might also be needed by others |
The `mail` gem installs a few of its .rb files (seems to be the generated tables?) without world read permissions, which breaks the app when running as an unprivileged user. We can remove the workaround once the upstream bug mikel/mail#1489 is fixed.
The `mail` gem installs a few of its .rb files (seems to be the generated tables?) without world read permissions, which breaks the app when running as an unprivileged user. We can remove the workaround once the upstream bug mikel/mail#1489 is fixed.
The `mail` gem installs a few of its .rb files (seems to be the generated tables?) without world read permissions, which breaks the app when running as an unprivileged user. We can remove the workaround once the upstream bug mikel/mail#1489 is fixed.
The `mail` gem installs a few of its .rb files (seems to be the generated tables?) without world read permissions, which breaks the app when running as an unprivileged user. We can remove the workaround once the upstream bug mikel/mail#1489 is fixed.
The `mail` gem installs a few of its .rb files (seems to be the generated tables?) without world read permissions, which breaks the app when running as an unprivileged user. We can remove the workaround once the upstream bug mikel/mail#1489 is fixed.
The `mail` gem installs a few of its .rb files (seems to be the generated tables?) without world read permissions, which breaks the app when running as an unprivileged user. We can remove the workaround once the upstream bug mikel/mail#1489 is fixed.
Hassles with Debug not compiling - install io-console. Mail fails during test with "cannot load such file -- mail/indifferent_hash", Fix by adding other-read flag to files in Mail gem directory. See mikel/mail#1489
Had to downgrade to 2.7.1 also :( |
Also run in troubles with this in context of Devise::Mailer. Chmod'ing files helped. |
pin mail 2.7.1 to avoid mikel/mail#1489
We ran into the same issue and I have trouble downgrading as it is a dependency for later versions of |
Previously, there was an issue with the mailer gem in release 2.8.0 mikel/mail#1489. To circumvent this we added it to the Gemfile and pinned it on the 2.7.0 release. Since this has been fixed we can remove it as a direct dependency.
Previously, there was an issue with the mailer gem in release 2.8.0 mikel/mail#1489. To circumvent this we added it to the Gemfile and pinned it on the 2.7.0 release. Since this has been fixed we can remove it as a direct dependency.
Previously, there was an issue with the mailer gem in release 2.8.0 mikel/mail#1489. To circumvent this we added it to the Gemfile and pinned it on the 2.7.0 release. Since this has been fixed we can remove it as a direct dependency.
Previously, there was an issue with the mailer gem in release 2.8.0 mikel/mail#1489. To circumvent this we added it to the Gemfile and pinned it on the 2.7.0 release. Since this has been fixed we can remove it as a direct dependency.
Previously, there was an issue with the mailer gem in release 2.8.0 mikel/mail#1489. To circumvent this we added it to the Gemfile and pinned it on the 2.7.0 release. Since this has been fixed we can remove it as a direct dependency.
Previously, there was an issue with the mailer gem in release 2.8.0 mikel/mail#1489. To circumvent this we added it to the Gemfile and pinned it on the 2.7.0 release. Since this has been fixed we can remove it as a direct dependency.
Previously, there was an issue with the mailer gem in release 2.8.0 mikel/mail#1489. To circumvent this we added it to the Gemfile and pinned it on the 2.7.0 release. Since this has been fixed we can remove it as a direct dependency.
Previously, there was an issue with the mailer gem in release 2.8.0 mikel/mail#1489. To circumvent this we added it to the Gemfile and pinned it on the 2.7.0 release. Since this has been fixed we can remove it as a direct dependency.
Previously, there was an issue with the mailer gem in release 2.8.0 mikel/mail#1489. To circumvent this we added it to the Gemfile and pinned it on the 2.7.0 release. Since this has been fixed we can remove it as a direct dependency.
Previously, there was an issue with the mailer gem in release 2.8.0 mikel/mail#1489. To circumvent this we added it to the Gemfile and pinned it on the 2.7.0 release. Since this has been fixed we can remove it as a direct dependency.
Previously, there was an issue with the mailer gem in release 2.8.0 mikel/mail#1489. To circumvent this we added it to the Gemfile and pinned it on the 2.7.0 release. Since this has been fixed we can remove it as a direct dependency.
Since the issue requiring that pinning in the first place is fixed mikel/mail#1489
Issue that made us do it is gone [1] [1]: mikel/mail#1489
Issue that made us do it is gone [1] [1]: mikel/mail#1489
Issue that made us do it is gone [1] [1]: mikel/mail#1489
Issue that made us do it is gone [1] [1]: mikel/mail#1489
Issue that made us do it is gone [1] [1]: mikel/mail#1489
Previously, there was an issue with the mailer gem in release 2.8.0 mikel/mail#1489. To circumvent this we added it to the Gemfile and pinned it on the 2.7.0 release. Since this has been fixed we can remove it as a direct dependency.
Some files in 2.8.0.rc1 release are not world-readable: (notice
elements.rb
,fields.rb
,indifferent_hash.rb
)This wasn't the case in previous releases:
…and makes the gem unusable in some setups:
Can you re-release rc1 with corrected permissions as rc2?
The text was updated successfully, but these errors were encountered: