Skip to content
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

Guice 2.0 and 3.0 jar are not generated with proper rights #672

Closed
gissuebot opened this issue Jul 7, 2014 · 2 comments
Closed

Guice 2.0 and 3.0 jar are not generated with proper rights #672

gissuebot opened this issue Jul 7, 2014 · 2 comments

Comments

@gissuebot
Copy link

From bruno@cloudera.com on December 08, 2011 14:27:14

When creating packages, such as RPMs, all jars in a package will be repacked.
The system script doing the repacking uses unzip to expand jars.

Unfortunately, guice create jars with no rights on the included files, therefore breaking builds of project using guice.

Steps to reproduce the issue:

  • unzip ../guice-3.0/guice-3.0.jar

* [bruno@Marsupilami goo]$ ls com/
ls: cannot open directory com/: Permission denied

* bruno@Marsupilami goo]$ ls -al
total 32
drwxrwxr-x   4 bruno bruno  4096 Dec  8 11:24 .
drwxr-xr-x. 24 bruno bruno  4096 Dec  8 11:24 ..
d---------   3 bruno bruno  4096 Mar 24  2011 com
----------   1 bruno bruno 11357 Jan 11  2009 LICENSE
drwxr-xr-x   2 bruno bruno  4096 Mar 24  2011 META-INF
----------   1 bruno bruno   101 Jan 11  2009 NOTICE

[bruno@Marsupilami goo]$ sudo ls -al com/
total 12
d--------- 3 bruno bruno 4096 Mar 24  2011 .
drwxrwxr-x 4 bruno bruno 4096 Dec  8 11:24 ..
d--------- 3 bruno bruno 4096 Mar 24  2011 google

The same apply for all files inside guice-3.0.jar.

Original issue: http://code.google.com/p/google-guice/issues/detail?id=672

@gissuebot
Copy link
Author

From mb.systemtrap on January 19, 2012 13:43:14

This isn't a problem or failure. Zip files do not contain any informations about permissions.

Your problem may be caused by a 'mad' umask.

@gissuebot
Copy link
Author

From sberlin on January 21, 2012 08:41:41

(No comment was entered for this change.)

Status: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant