You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by GitBox <gi...@apache.org> on 2022/10/18 16:03:10 UTC

[GitHub] [activemq-artemis] jbertram commented on a diff in pull request #4259: ARTEMIS-4049 user add fails w/space in broker path

jbertram commented on code in PR #4259:
URL: https://github.com/apache/activemq-artemis/pull/4259#discussion_r998436204


##########
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:
   Fixed.



-- 
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: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org