RFR: 8335172: Add manual steps to run security/auth/callback/TextCallbackHandler/Password.java test

Fernando Guallini fguallini at openjdk.org
Mon Jul 29 14:25:42 UTC 2024


The test: **com/sun/security/auth/callback/TextCallbackHandler/Password.java** would benefit from detailed manual steps to ensure it runs correctly. It was added to the problem list because it was not executed properly and failed. Providing these steps will help prevent such issues in the future.

This test cannot be automated because [util/Password.java](https://github.com/openjdk/jdk/blob/cd52ad80a82c8165424722dcddd37d6584137031/src/java.base/share/classes/sun/security/util/Password.java#L58) verifies that the given input stream is equal to the **initialSystemIn**. As a result, the test cannot simulate user input by providing a custom input stream.

Additionally, move it from **jdk_security_manual_no_input** to **jdk_security_manual_interactive** because the user needs to enter several passwords and verify the console output. Also, the test was originally introduced in ticket ID: 6829785, added that information.

-------------

Commit messages:
 - added back original bug id for tracking purposes
 - Merge master
 - added steps to run test, moved test from no_input to interactive

Changes: https://git.openjdk.org/jdk/pull/20374/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20374&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8335172
  Stats: 17 lines in 3 files changed: 13 ins; 2 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/20374.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20374/head:pull/20374

PR: https://git.openjdk.org/jdk/pull/20374



More information about the security-dev mailing list