Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6734163

Can't find auth file in a jar.

    Details

      Description

      FULL PRODUCT VERSION :
      java version "1.5.0_16"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
      Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      We have auth.conf file in a jar file. This works with update 15. When we initiate login it is failing with
      Caused by: java.lang.SecurityException: jar:auth-client.conf (No such file or directory)
       at com.sun.security.auth.login.ConfigFile.<init>(Unknown Source)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
       at java.lang.reflect.Constructor.newInstance(Unknown Source)
       at java.lang.Class.newInstance0(Unknown Source)
       at java.lang.Class.newInstance(Unknown Source)
       at javax.security.auth.login.Configuration$3.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native Method)
       at javax.security.auth.login.Configuration.getConfiguration(Unknown Source)
       at javax.security.auth.login.LoginContext$1.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native Method)
       at javax.security.auth.login.LoginContext.init(Unknown Source)
       at javax.security.auth.login.LoginContext.<init>(Unknown Source)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Put auth.conf in a jar file and try to login from a client.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
       System.setProperty("java.security.auth.login.config", getClass().getResource("/auth-client.conf").toExternalForm())
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      None so far.

      Release Regression From : 5.0u15
      The above release value was the last known release where this
      bug was not reproducible. Since then there has been a regression.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ndcosta Nelson Dcosta (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: