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

jvergara
08.17.2009 770246e479762c804631ef58713243748c709932
Add a missing check in the setup code:  we did not check if the user provided the same value for the administration connector port and the other ports.
2 files modified
17 ■■■■■ changed files
opends/src/messages/messages/quicksetup.properties 2 ●●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java 15 ●●●●● patch | view | raw | blame | history
opends/src/messages/messages/quicksetup.properties
@@ -272,6 +272,8 @@
 server to run as a Windows Service.
INFO_EQUAL_PORTS=You must specify different ports for LDAP and LDAPS \
 communication.
INFO_ADMIN_CONNECTOR_VALUE_SEVERAL_TIMES=You must specify different ports for \
 the Administration Connector Port and the other listeners.
INFO_ERROR_ACCESSING_JKS_KEYSTORE=Could not access the JKS key store.  Check \
 that the contents of the file correspond to a valid JKS key store, that you \
 have access rights to it and that the provided PIN is valid.
opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
@@ -3084,7 +3084,14 @@
        }
        qs.displayFieldInvalid(FieldName.ADMIN_CONNECTOR_PORT, true);
      } else
      }
      else if (adminConnectorPort == port)
      {
        errorMsgs.add(INFO_ADMIN_CONNECTOR_VALUE_SEVERAL_TIMES.get());
        qs.displayFieldInvalid(FieldName.SERVER_PORT, true);
        qs.displayFieldInvalid(FieldName.ADMIN_CONNECTOR_PORT, true);
      }
      else
      {
        getUserData().setAdminConnectorPort(adminConnectorPort);
        qs.displayFieldInvalid(FieldName.ADMIN_CONNECTOR_PORT, false);
@@ -3128,6 +3135,12 @@
        qs.displayFieldInvalid(FieldName.SECURITY_OPTIONS, true);
        qs.displayFieldInvalid(FieldName.SERVER_PORT, true);
      }
      else if (adminConnectorPort == securePort)
      {
        errorMsgs.add(INFO_ADMIN_CONNECTOR_VALUE_SEVERAL_TIMES.get());
        qs.displayFieldInvalid(FieldName.SECURITY_OPTIONS, true);
        qs.displayFieldInvalid(FieldName.ADMIN_CONNECTOR_PORT, true);
      }
      else
      {
        getUserData().setSecurityOptions(sec);