Skip to content

Commit

Permalink
fix: Bug with ssl network connections + Java module permissions. (#1182)
Browse files Browse the repository at this point in the history
Closes #1181.
  • Loading branch information
bdferris-v2 authored Jun 7, 2022
1 parent da57dbf commit e00672c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions app/pkg/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ extraJavaModuleInfo {
requires('java.prefs')
requires('java.security.jgss')
requires('java.sql')
// Need for SSL support for network connections.
requires('jdk.crypto.ec')
requires('jdk.crypto.cryptoki')
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,16 @@ public synchronized void resolve() {

executor.submit(
() -> {
Optional<String> currentVersion = resolveCurrentVersion();
Optional<String> latestReleaseVersion = resolveLatestReleaseVersion();
VersionInfo info = VersionInfo.create(currentVersion, latestReleaseVersion);
resolvedVersionInfo.set(info);
return info;
try {
Optional<String> currentVersion = resolveCurrentVersion();
Optional<String> latestReleaseVersion = resolveLatestReleaseVersion();
VersionInfo info = VersionInfo.create(currentVersion, latestReleaseVersion);
resolvedVersionInfo.set(info);
return info;
} catch (Throwable ex) {
logger.atSevere().withCause(ex).log("Error resolving version info");
}
return VersionInfo.empty();
});
}

Expand Down

0 comments on commit e00672c

Please sign in to comment.