finished registering the upgrade/reversion issue; fixed some typos and minor issues preventing the upgrader from notifying the user about the issue
| | |
| | | INFO_REVERSION_ORACLE_WARNING=Reversion warning |
| | | INFO_REVERSION_ORACLE_ACTION=Upgrade requires manual action |
| | | INFO_REVERSION_ORACLE_INFO=Upgrade information |
| | | INFO_REVERSION_ORACLE_UNSUPPORTED=Upgrade not supportedfrom version %s to \ |
| | | INFO_REVERSION_ORACLE_UNSUPPORTED=Reversion not supported from version %s to \ |
| | | version %s is not supported. To upgrade You must uninstall the current \ |
| | | server, install the new server, and manually migrate your data. |
| | | server, install the new server, and manually migrate your data: %s |
| | | INFO_REVERSION_TYPE_PROMPT=How would you like to specify the archive used \ |
| | | to revert this instance? |
| | | INFO_REVERSION_TYPE_PROMPT_RECENT=Use the most recent versioned archive |
| | |
| | | INFO_UPGRADE_ORACLE_INFO=Upgrade information |
| | | INFO_UPGRADE_ORACLE_SUCCESS=Upgrade from version %s to version %s is \ |
| | | supported. |
| | | INFO_UPGRADE_ORACLE_UNSUPPORTED=Upgrade not supportedfrom version %s to \ |
| | | INFO_UPGRADE_ORACLE_UNSUPPORTED=Upgrade not supported from version %s to \ |
| | | version %s is not supported. To upgrade You must uninstall the current \ |
| | | server, install the new server, and manually migrate your data. |
| | | server, install the new server, and manually migrate your data: %s |
| | | INFO_UPGRADE_ORACLE_WARNING=Upgrade warning |
| | | INFO_UPGRADE_REVIEW_PANEL_INSTRUCTIONS=Review your settings and click Finish \ |
| | | if they are correct. |
| | |
| | | */ |
| | | public UserInteraction userInteraction() { |
| | | UserInteraction ui = null; |
| | | if (!getUserData().isInteractive()) { |
| | | if (getUserData().isInteractive()) { |
| | | if (Utils.isCli()) { |
| | | ui = new CliUserInteraction(); |
| | | } else { |
| | |
| | | if (hasIssues()) { |
| | | List<Directive> issues = getIssues(); |
| | | if (!isSupported()) { |
| | | MessageBuilder reason = new MessageBuilder(); |
| | | if (issues != null) { |
| | | for (Directive directive : issues) { |
| | | LOG.log(Level.INFO, "Unsupported reversion details: " + |
| | | directive.getMessage()); |
| | | reason.append(directive.getMessage()); |
| | | reason.append(EOL); |
| | | } |
| | | } |
| | | throw new ApplicationException( |
| | | ReturnCode.APPLICATION_ERROR, |
| | | INFO_REVERSION_ORACLE_UNSUPPORTED.get( |
| | | currentBuildInfo.toString(), |
| | | newBuildInfo.toString()), |
| | | newBuildInfo.toString(), |
| | | reason.toMessage()), |
| | | null); |
| | | } else { |
| | | if (ui != null) { |
| | |
| | | if (hasIssues()) { |
| | | List<Directive> issues = getIssues(); |
| | | if (!isSupported()) { |
| | | MessageBuilder reason = new MessageBuilder(); |
| | | if (issues != null) { |
| | | for (VersionIssueNotifier.Directive directive : issues) { |
| | | LOG.log(Level.INFO, "Unsupported upgrade details: " + |
| | | directive.getMessage()); |
| | | reason.append(directive.getMessage()); |
| | | reason.append(EOL); |
| | | } |
| | | } |
| | | throw new ApplicationException( |
| | | ReturnCode.APPLICATION_ERROR, |
| | | INFO_UPGRADE_ORACLE_UNSUPPORTED.get( |
| | | currentBuildInfo.toString(), |
| | | newBuildInfo.toString()), |
| | | newBuildInfo.toString(), |
| | | reason.toMessage()), |
| | | null); |
| | | } else { |
| | | if (ui != null) { |
| | |
| | | static private final Logger LOG = |
| | | Logger.getLogger(VersionIssueNotifier.class.getName()); |
| | | |
| | | /** |
| | | * End Of Line. |
| | | */ |
| | | public static String EOL = System.getProperty("line.separator"); |
| | | |
| | | |
| | | /** Descriptor for a directive. */ |
| | | protected enum DirectiveType { |
| | | |
| | |
| | | //*************************************************** |
| | | |
| | | static { |
| | | register(Cause.PROPERTY_CHANGE_1, new BuildVersion(1, 0, 0, 3053)); |
| | | register(Cause.DB_FORMAT_CHANGE_2, new BuildVersion(0, 9, 0, 2049)); |
| | | register(Cause.DB_FORMAT_CHANGE_1, new BuildVersion(0, 1, 0, 1582)); |
| | | register(Cause.BERKLEY_UPGRADE_1, new BuildVersion(0, 1, 0, 890)); |