Skip to content

Conversation

@sgala
Copy link
Contributor

@sgala sgala commented Apr 2, 2024

Remove commons-lang3 dependency and update binary dependencies to the versions in pom.xml.

Also, revert jgit 6.x dependency that requires jdk-11, while current groovy version requires 1.8

@sgala sgala force-pushed the remove-commons-lang3-dependency branch from e14fa84 to 7f71544 Compare April 3, 2024 06:55
Copy link
Contributor

@honza-kasik honza-kasik left a comment

Choose a reason for hiding this comment

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

Thanks, code LGTM (just one question), but it would be handy to try this out in noe-tests.

// Is realm's authentication undefined?
if (CLILib.readArbitraryCommandOutput(securityRealmBuilder.as7serverInstance, cmdStrReadMgt) =~ /${securityRealmBuilder.name}[[^\n]*\n]*authentication[ "=>\{\n]*undefined/) {
if (StringUtils.isBlank(securityRealmBuilder.truststoreAbsolutePath) || StringUtils.isBlank(securityRealmBuilder.truststorePassword)) throw new IllegalArgumentException("One must set both TruststoreAbsolutePath and TruststorePassword.")
if (securityRealmBuilder.truststoreAbsolutePath?.allWhitespace || securityRealmBuilder.truststorePassword.isBlank()) throw new IllegalArgumentException("One must set both TruststoreAbsolutePath and TruststorePassword.")
Copy link
Contributor

Choose a reason for hiding this comment

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

isBlank() for securityRealmBuilder.truststorePasswor is intentional here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch, I missed it in my last edit. Apparently the integration tests didn't catch it! I'm fixing it as I rebase.

@sgala sgala force-pushed the remove-commons-lang3-dependency branch from 62e9b0e to dc31088 Compare April 22, 2024 13:16
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.

3 participants