JDK-8256202 : Some tweaks for jarsigner tests PosixPermissionsTest and SymLinkTest
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-11-11
  • Updated: 2021-10-29
  • Resolved: 2020-11-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 16
11.0.14-oracleFixed 16 b25Fixed
Related Reports
Relates :  
Relates :  
Description
Working on 11u backports of JDK-8218021 and JDK-8250968, I found some minor points for improvement in tests
test/jdk/sun/security/tools/jarsigner/PosixPermissionsTest.java and
test/jdk/sun/security/tools/jarsigner/SymLinkTest.java

The details

PosixPermissionsTest:
- it can run on any system, no matter if the default filesystem supports Posix or not since Posix support is only required for the zipfs which is always true.
- improve some comments for the test flow

SymLinkTest:
- make output of createByteArray prettier
- improve inline comments to ease understanding
- add an option to main for generating ZIPBYTES
- use "Files.write(Path.of(ZIPFILENAME), ZIPBYTES)" for creating the test zipfile

Comments
Fix Request (11u): Should get backported for parity with 11.0.14-oracle. Doesn't apply cleanly. Review: https://github.com/openjdk/jdk11u-dev/pull/564
28-10-2021

Changeset: 1e9a432d Author: Christoph Langer <clanger@openjdk.org> Date: 2020-11-13 17:28:05 +0000 URL: https://github.com/openjdk/jdk/commit/1e9a432d
13-11-2020