opends/src/quicksetup/org/opends/quicksetup/upgrader/Upgrader.java
@@ -1869,11 +1869,19 @@ try { BuildInformation fromVersion = getCurrentInstanceBuildInformation(); BuildInformation toVersion = getStagedBuildInformation(); if (fromVersion.equals(toVersion)) { throw new ApplicationException(ReturnCode.APPLICATION_ERROR, INFO_UPGRADE_ORACLE_SAME_VERSION.get( toVersion.toString()), null); if (fromVersion.equals(toVersion)) { // Only possible if product differs String fromProductName = getCurrentBuildInformation().getName(); String toProductName = toVersion.getName(); LOG.log(Level.FINEST, "fromProductName=" + fromProductName); LOG.log(Level.FINEST, "toProductName=" + toProductName); if ((fromProductName != null) && (toProductName != null) && fromProductName.equals(toProductName)) { throw new ApplicationException(ReturnCode.APPLICATION_ERROR, INFO_UPGRADE_ORACLE_SAME_VERSION.get( toVersion.toString()), null); } } if (getInstallation().getStatus().isServerRunning()) { new ServerController(getInstallation()).stopServer(true); opends/src/server/org/opends/server/tools/configurator/CheckInstance.java
@@ -277,19 +277,32 @@ System.exit(USER_ERROR); } // Initialize buildinfo in not already done (ZIP delivery) BuildInformation installBi = BuildInformation.fromBuildString(MAJOR_VERSION + "." + MINOR_VERSION + "." + POINT_VERSION + "." + REVISION_NUMBER); File bif = new File(confDir, Installation.BUILDINFO_RELATIVE_PATH); if (!bif.exists()) { FileWriter fwriter = null; try { fwriter = new FileWriter(bif, true); fwriter.append(installBi.getBuildString()); } catch (Exception e) { } finally { try { fwriter.close(); } catch (Exception e) { } } } // Check version if (checkVersionArg.isPresent()) { BuildInformation installBi = BuildInformation.fromBuildString(MAJOR_VERSION + "." + MINOR_VERSION + "." + POINT_VERSION + "." + REVISION_NUMBER); BuildInformation instanceBi = installBi; try { File bif = new File(confDir, Installation.BUILDINFO_RELATIVE_PATH); if (bif.exists()) { BufferedReader breader = new BufferedReader(new FileReader(bif)); @@ -365,4 +378,4 @@ System.exit(SUCCESS); } } }