Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179853 - java-config should report permission denied when it cannot access package.env
Summary: java-config should report permission denied when it cannot access package.env
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2007-05-26 10:15 UTC by Vlastimil Babka (Caster) (RETIRED)
Modified: 2013-12-25 13:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
The patch to fix this bug (bug179853_fixed.diff,800 bytes, patch)
2011-04-03 15:20 UTC, Kyle pan
Details | Diff
svn diff file (bug179853_fixed.svndiff,709 bytes, patch)
2011-04-04 07:44 UTC, Kyle pan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-05-26 10:15:00 UTC
It just says:
!!! ERROR: Package jetty-5  was not found!

because /usr/share/jetty-5/ wasn't readable with userpriv
Comment 1 Kyle pan 2011-04-01 06:44:29 UTC
Anyone know which version of java-config this bug is on?Thanks
Comment 2 Kyle pan 2011-04-03 15:20:17 UTC
Created attachment 268343 [details, diff]
The patch to fix this bug

This patch applies to the latest release version(2.1.11)

Finally I tried to reproduce the bug on the latest vesion(https://overlays.gentoo.org/svn/proj/java/projects/java-config-2/tags/2.1.11/)
Though it did not give the "!!! ERROR: Package jetty-5  was not found!" Error, it thowed out a call stack which is unfriendly to users:
Traceback (most recent call last):
  File "/usr/bin/java-config-2-3.1", line 395, in <module>
    (options, args) = parser.parse_args(args=args)
......
......
  File "/usr/lib64/python3.1/site-packages/java_config_2/FileParser.py", line 20, in parse
    raise PermissionError
java_config_2.Errors.PermissionError.

and after the patching,
it give the more user-friendly message:
!!! ERROR: You do not have enough permissions to read the package's package.env
Comment 3 Serkan Kaba (RETIRED) gentoo-dev 2011-04-03 17:07:30 UTC
Just talked to him on IRC, he'll provide a SVN diff as requested.
Comment 4 Kyle pan 2011-04-04 07:44:08 UTC
Created attachment 268461 [details, diff]
svn diff file

the result of svn diff after fixing this bug.
Comment 5 Serkan Kaba (RETIRED) gentoo-dev 2011-04-25 13:17:35 UTC
Merged to SVN on 6th of April. Will close after release.
Comment 6 Ralph Sennhauser (RETIRED) gentoo-dev 2013-12-25 13:03:43 UTC
(In reply to Serkan Kaba from comment #5)
> Merged to SVN on 6th of April. Will close after release.

Closing as this is released for a while ...