Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-9343

Detect if a SNAPSHOT package must be replaced

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.5
    • Fix Version/s: 5.8
    • Tags:
    • Backlog priority:
      1,200
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      Return type of org.nuxeo.connect.update.standalone.PackagePersistence.getState(String) changed from int to org.nuxeo.connect.update.PackageState

      Show
      Return type of org.nuxeo.connect.update.standalone.PackagePersistence.getState(String) changed from int to org.nuxeo.connect.update.PackageState

      Description

      Allow replacement of SNAPSHOT packages (mainly for testing purpose and upgrade of SNAPSHOT distrib).

      Use information embedded in the packages for detecting new ones online. MD5 sums, timestamps or information extracted from the package can be used for quick equality and comparison checks.

      The procedure must first uninstall the old package, then install the new one:

      • If a SNAPSHOT package is already in cache but not installed, then remove it and add the new one: mp-add instead of mp-remove + mp-add.
      • If a SNAPSHOT package is already installed, then
        • mp-add must raise a warning, ask for confirmation (respect the --accept option), then uninstall, add and remind the user he needs to install the package: mp-add instead of mp-remove + mp-add.
        • mp-install must remove the old package and install the new one: mp-install instead of mp-remove + mp-install.

      In all cases, the previous SNAPSHOT package is deleted and lost: it cannot be reinstalled from the cache.

      Adding or installing an older SNAPSHOT package than the one currently in cache (installed or not) requires manual removal first. Else, the command returns without having done anything but logging a warning.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.