xiaodududu / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by br...@cloudera.com on 8 Dec 2011 at 7:27

GoogleCodeExporter commented 9 years ago
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.

Original comment by mb.syste...@gmail.com on 19 Jan 2012 at 9:43

GoogleCodeExporter commented 9 years ago

Original comment by sberlin on 21 Jan 2012 at 4:41