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

sun/security/krb5/auto/UnboundSSL.java fails on Windows when source and jtreg workdir are on different drives

    Details

      Description

      Easily reproducible by setting the workdir (using -w:) to a different drive.

      ----------System.err:(32/2947)*----------
      java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\\Temp\\sparky\\jib-data\\install\\jdk\\personal\\christian.tornqvist\\2017-05-11-1836062.christian.tornqvist.jdk10-jdk10\\source\\src-full.tar.gz\\jdk\\test\\sun\\security\\krb5\\auto\\TestHosts" "read")
      at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:471)
      at java.base/java.security.AccessController.checkPermission(AccessController.java:894)
      at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:558)
      at java.base/java.lang.SecurityManager.checkRead(SecurityManager.java:897)
      at java.base/java.io.FileInputStream.<init>(FileInputStream.java:128)
      at java.base/java.util.Scanner.<init>(Scanner.java:635)
      at java.base/java.util.Scanner.<init>(Scanner.java:629)
      at java.base/java.net.InetAddress$HostsFileNameService.lookupAllHostAddr(InetAddress.java:1034)
      at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1501)
      at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:840)
      at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1491)
      at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1350)
      at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1284)
      at java.base/java.net.InetAddress.getByName(InetAddress.java:1234)
      at java.base/java.net.InetSocketAddress.<init>(InetSocketAddress.java:220)
      at java.base/sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:420)
      at java.base/sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88)
      at SSLClient.init(UnboundSSLUtils.java:143)
      at UnboundSSL.start(UnboundSSL.java:106)
      at UnboundSSL.main(UnboundSSL.java:48)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:563)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:844)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ssahoo Sibabrata Sahoo
                Reporter:
                ctornqvi Christian Tornqvist
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: