-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
23
-
None
-
NAME="Alibaba Group Enterprise Linux Server"
VERSION="7.2 (Paladin)"
ID="alios"
ID_LIKE="fedora anolis"
VERSION_ID="7.2"
PRETTY_NAME="Alibaba Group Enterprise Linux Server 7.2 (Paladin)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:alibaba:enterprise_linux:7.2:GA:server"
HOME_URL="https://os.alibaba-inc.com/"
BUG_REPORT_URL="https://os.alibaba-inc.com/"ALIBABA_BUGZILLA_PRODUCT="Alibaba Group Enterprise Linux 7"
ALIBABA_BUGZILLA_PRODUCT_VERSION=7.2
ALIBABA_SUPPORT_PRODUCT="Alibaba Group Enterprise Linux"
ALIBABA_SUPPORT_PRODUCT_VERSION=7.2NAME="Alibaba Group Enterprise Linux Server" VERSION="7.2 (Paladin)" ID="alios" ID_LIKE="fedora anolis" VERSION_ID="7.2" PRETTY_NAME="Alibaba Group Enterprise Linux Server 7.2 (Paladin)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:alibaba:enterprise_linux:7.2:GA:server" HOME_URL="https://os.alibaba-inc.com/" BUG_REPORT_URL="https://os.alibaba-inc.com/" ALIBABA_BUGZILLA_PRODUCT="Alibaba Group Enterprise Linux 7" ALIBABA_BUGZILLA_PRODUCT_VERSION=7.2 ALIBABA_SUPPORT_PRODUCT="Alibaba Group Enterprise Linux" ALIBABA_SUPPORT_PRODUCT_VERSION=7.2
-
generic
-
linux
#whoami
root
#jtreg -v1 -nr -w tmp-2 test/jdk/java/nio/file/Files/CopyMoveVariations.java
Directory "tmp-2" not found: creating
Passed: java/nio/file/Files/CopyMoveVariations.java
Test results: passed: 1
Results written to /home/yansendao/git/jdk/tmp-2
java/nio/file/Files/CopyMoveVariations.java run fails with non-root user:
> jtreg -va -nr -w tmp -J-Djavatest.maxOutputSize=1000000 test/jdk/java/nio/file/Files/CopyMoveVariations.java 2>&1 | tee CopyMoveVariations.log | grep FAILED
FAILED CopyMoveVariations::move '[1] FILE, ---------, false, false'
FAILED CopyMoveVariations::move '[3] FILE, ---------, true, false'
FAILED CopyMoveVariations::move '[9] FILE, -w--w--w-, false, false'
FAILED CopyMoveVariations::move '[11] FILE, -w--w--w-, true, false'
FAILED CopyMoveVariations::move '[25] DIR, -w--w--w-, false, false'
FAILED CopyMoveVariations::move '[27] DIR, -w--w--w-, true, false'
detail fail:
STARTED CopyMoveVariations::move '[1] FILE, ---------, false, false'
java.nio.file.AccessDeniedException: /tmp/file2996867938559763338dat
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileSystem.copyFile(UnixFileSystem.java:658)
at java.base/sun.nio.fs.UnixFileSystem.move(UnixFileSystem.java:963)
at java.base/sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:309)
at java.base/java.nio.file.Files.move(Files.java:1437)
at CopyMoveVariations.op(CopyMoveVariations.java:195)
at CopyMoveVariations.move(CopyMoveVariations.java:136)
STARTED CopyMoveVariations::move '[25] DIR, -w--w--w-, false, false'
org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31)
at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:180)
at CopyMoveVariations.op(CopyMoveVariations.java:215)
at CopyMoveVariations.move(CopyMoveVariations.java:136)
- relates to
-
JDK-8322881 java/nio/file/Files/CopyMoveVariations.java fails with AccessDeniedException due to permissions of files in /tmp
- Resolved
-
JDK-8327002 (fs) java/nio/file/Files/CopyMoveVariations.java should be able to test across file systems
- Resolved
- links to
-
Review openjdk/jdk/17606