Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8371094

--mac-signing-key-user-name "CMR Technologies Limited" no longer works

XMLWordPrintable

    • b24
    • 25
    • generic
    • os_x

      ADDITIONAL SYSTEM INFORMATION :
      MacOS

      A DESCRIPTION OF THE PROBLEM :
      --mac-signing-key-user-name "CMR Technologies Limited" no longer works as expected, jpackage complains that it cannot find the cert. This is down to a simple string matching bug.

      Now you need to provide a user ID in it too, e.g.: --mac-signing-key-user-name "xxxxxxxxxxxx", for example.

      This was never the case before and is contrary to the documentation: "Team or user name portion".

      It's down to this buggy code:

              var matchingCertificates = mappedCertficates.stream().filter(e -> {
                  return signingIdentityNames.contains(e.getKey());
              }).map(Map.Entry::getValue).toList();

      ... in SigningIdentitiyBuilder.

      This is a regression.

      It would also be helpful, please, if you logged the commands you're running and the number of certs found, etc., especially if --verbose is specified. We're completely 100% in the dark about what jpackage is doing. Debugging this stuff is not easy and there are problems from release to release.

      REGRESSION : Last worked in version 21.0.9


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: