Summary: | java-config should report permission denied when it cannot access package.env | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vlastimil Babka (Caster) (RETIRED) <caster> |
Component: | [OLD] Java | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | InVCS |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
The patch to fix this bug
svn diff file |
Description
Vlastimil Babka (Caster) (RETIRED)
2007-05-26 10:15:00 UTC
Anyone know which version of java-config this bug is on?Thanks 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 Just talked to him on IRC, he'll provide a SVN diff as requested. Created attachment 268461 [details, diff]
svn diff file
the result of svn diff after fixing this bug.
Merged to SVN on 6th of April. Will close after release. (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 ... |