--mac-signing-key-user-name no longer works

XMLWordPrintable

    • b24
    • 25
    • b23
    • generic
    • os_x

        ADDITIONAL SYSTEM INFORMATION :
        MacOS

        A DESCRIPTION OF THE PROBLEM :
        --mac-signing-key-user-name 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 "Company Name (ABC1234567)", 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


              Assignee:
              Alexey Semenyuk
              Reporter:
              Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: