Use IvyAuthenticator only when it is really necessary
-----------------------------------------------------
Key: IVY-1211
URL: https://issues.apache.org/jira/browse/IVY-1211
Project: Ivy
Issue Type: Improvement
Reporter: Mark Zheng
Currently, Ivy uses BasicURLHandler to locate resources and to open an input
stream on it. According to the implementation of the release 2.1.0, the
constructor of the BasicURLHandler forces the JVM to load the IvyAuthenticator
class. This action will have to assume that the "java.net.NetPermission:
setDefaultAuthenticator" has already been granted to Ivy, since the
IvyAuthenticator will set itself as the JVM's default authenticator.
Sometimes the user only needs to load some resources in its own application's
classpath, in which case there is no need to use an authenticator, thus no need
to grant Ivy the "java.net.NetPermission: setDefaultAuthenticator". However,
currently the user has to grant the permission even if this makes little sense.
It will be better if the BasicURLHandler uses IvyAuthenticator only when it is
really necessary.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.