-
Bug
-
Resolution: Fixed
-
P4
-
11, 17, 21, 22
-
b14
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8316169 | 21.0.2 | Christoph Langer | P4 | Resolved | Fixed | b02 |
JDK-8319069 | 17.0.11-oracle | Ramesh Gangadhar | P4 | Resolved | Fixed | b01 |
JDK-8316301 | 17.0.10 | Christoph Langer | P4 | Resolved | Fixed | b01 |
JDK-8319070 | 11.0.23-oracle | Ramesh Gangadhar | P4 | Resolved | Fixed | b01 |
JDK-8316302 | 11.0.22 | Christoph Langer | P4 | Resolved | Fixed | b01 |
The test checks whether the child Process user as returned by the Process Handle matches the current user. It determines the current user by creating a file and reading its owner. However, in Windows, when a user belongs to the administrators group and runs elevated, the owner of a new file is "BUILTIN\Administrators", so it is not possible to determine the current user correctly in this way.
The test failure will look like:
test InfoTest.test2(): failure
java.lang.AssertionError: User name expected [BUILTIN\\Administrators] but found [<MYDOMAIN>\\<MYUSER>]
at org.testng.Assert.fail(Assert.java:99)
at org.testng.Assert.failNotEquals(Assert.java:1037)
at org.testng.Assert.assertEqualsImpl(Assert.java:140)
at org.testng.Assert.assertEquals(Assert.java:122)
at org.testng.Assert.assertEquals(Assert.java:629)
at InfoTest.test2(InfoTest.java:166)
- backported by
-
JDK-8316169 java/lang/ProcessHandle/InfoTest.java fails on Windows when run as user with Administrator privileges
-
- Resolved
-
-
JDK-8316301 java/lang/ProcessHandle/InfoTest.java fails on Windows when run as user with Administrator privileges
-
- Resolved
-
-
JDK-8316302 java/lang/ProcessHandle/InfoTest.java fails on Windows when run as user with Administrator privileges
-
- Resolved
-
-
JDK-8319069 java/lang/ProcessHandle/InfoTest.java fails on Windows when run as user with Administrator privileges
-
- Resolved
-
-
JDK-8319070 java/lang/ProcessHandle/InfoTest.java fails on Windows when run as user with Administrator privileges
-
- Resolved
-
- links to
-
Commit openjdk/jdk11u-dev/94c048f9
-
Commit openjdk/jdk17u-dev/47f87189
-
Commit openjdk/jdk21u/f6426fa3
-
Commit openjdk/jdk/69c9ec92
-
Review openjdk/jdk11u-dev/2128
-
Review openjdk/jdk17u-dev/1729
-
Review openjdk/jdk21u/135
-
Review openjdk/jdk/15222