gemmellr commented on code in PR #4259:
URL: https://github.com/apache/activemq-artemis/pull/4259#discussion_r997899160
##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java:
##########
@@ -4535,8 +4537,8 @@ private PropertiesLoginModuleConfigurator
getPropertiesLoginModuleConfigurator()
if (configurationUrl == null) {
throw ActiveMQMessageBundle.BUNDLE.failedToLocateConfigURL();
}
- String path = configurationUrl.getPath();
- return new PropertiesLoginModuleConfigurator(getSecurityDomain(),
path.substring(0, path.lastIndexOf("/")));
+ String path = Paths.get(configurationUrl.toURI()).toString();
Review Comment:
The doc for Paths indicates to use Path.of(..) instead.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]