Skip to content

Conversation

m-sasha
Copy link
Member

@m-sasha m-sasha commented Jul 7, 2025

When the developer id contains non-ASCII characters, the output of security find-certificates is different, and we need different code to parse it.

Testing

Tested manually and added a unit test.
Note that the test is disabled, and it actually fails at the end, but it fails after the code in question, and the previously existing macSign test fails at the same place.

Release Notes

Fixes - Gradle Plugin

  • Fix codesigning on macOS when the developer id contains non-ASCII characters. Note that this requires JDK 21 or later.

@m-sasha m-sasha force-pushed the m-sasha/fix-non-ascii-identity branch from 5c86cf5 to d6803da Compare July 7, 2025 13:31
@m-sasha m-sasha force-pushed the m-sasha/fix-non-ascii-identity branch from d6803da to 564cd9a Compare July 7, 2025 15:08
@m-sasha m-sasha requested a review from terrakok July 9, 2025 19:48
@@ -3,6 +3,7 @@ pluginManagement {
id 'org.jetbrains.kotlin.jvm' version 'KOTLIN_VERSION_PLACEHOLDER'
id 'org.jetbrains.kotlin.plugin.compose' version 'KOTLIN_VERSION_PLACEHOLDER'
id 'org.jetbrains.compose' version 'COMPOSE_GRADLE_PLUGIN_VERSION_PLACEHOLDER'
id 'org.gradle.toolchains.foojay-resolver-convention' version '1.0.0'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a plugin that automatically downloads and "installs" JDKs as needed. We need it because the tests now include testing with a JDK not installed by default (JDK 21, in testMacSignWithNonAsciiDeveloperId)

Copy link
Member

@terrakok terrakok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@m-sasha m-sasha merged commit 406eef8 into master Jul 10, 2025
13 checks passed
@m-sasha m-sasha deleted the m-sasha/fix-non-ascii-identity branch July 10, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants