java/nio/file/attribute/BasicFileAttributeView/SetTimesNanos.java failed on Windows 11 25H2 beta with java.nio.file.FileSystemException

XMLWordPrintable

    • x86_64
    • windows

      java/nio/file/attribute/BasicFileAttributeView/SetTimesNanos.java fails with java.nio.file.FileSystemException: symlink: A required privilege is not held by the client

      java.nio.file.FileSystemException: symlink: A required privilege is not held by the client
      at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
      at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
      at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
      at java.base/sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(WindowsFileSystemProvider.java:571)
      at java.base/java.nio.file.Files.createSymbolicLink(Files.java:976)
      at SetTimesNanos.testNanosLink(SetTimesNanos.java:116)
      at SetTimesNanos.main(SetTimesNanos.java:70)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1474)


      This test passes in MACH5 on current supported version of windows 11. But the test is run with SYTEM user.

      The test run by IMT with a standard user. They have been instructed not to use the admin user

      I have the test successfully on a windows server 2019 on which I have admin privilege

      This is an RFI. Does this test require admin privileges to succeed ?

            Assignee:
            Brian Burkhalter
            Reporter:
            Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: