mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Ludovic Poitou
04.55.2013 b4d26639d2fef461b0e6e859ce846bdcb54857a3
Fix regression introduced by the previous commit, which cause the JMXPrivilegeTests to fail. 
Note that these tests may still fail some time to time, since they expect the JMX connection handler to start in less than 1 second, which might be low on a single cpu VM.
1 files modified
4 ■■■■ changed files
opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java 4 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java
@@ -407,9 +407,9 @@
  {
    JMXConnectionHandlerCfg config = (JMXConnectionHandlerCfg) configuration;
    if (currentConfig == null ||
    if ((currentConfig == null ||
        (!currentConfig.isEnabled() && config.isEnabled()) ||
        currentConfig.getListenPort() != config.getListenPort() &&
        currentConfig.getListenPort() != config.getListenPort()) &&
        !isPortConfigurationAcceptable(String.valueOf(config.dn()),
          config.getListenPort(), unacceptableReasons))
    {