Revision as of 04:57, 13 August 2019 by Frauzufall (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Updater V1 technical details

I'll use this page to document the changes made to the ImageJ Updater in the about to be released version called V1.

What's different

  • Added a check whether Java version supports the HTTPS certificates.
  • Depending on what's supported, the updater will use HTTPS or HTTP links for the update sites on imagej.net (and throw a warning in case HTTPS is not supported)
  • Uploading via HTTPS is working now, both basic and digest authentication supported
  • The updater is smarter about updating URLs of official sites (= listed on the list of available update sites) in case they change remotely
    • It shows a approval dialog for activated update sites, when the URL changed in the official list of update sites.
    • Supports migration from http to https for sites.imagej.net.

Previous version

[src] UpdaterV0.png


  • locally saved update sites will just override the ones coming from the list of available update sites (matching by name), therefore remotely changed URLs will not reach the user
  • always using HTTP by default
  • no check if HTTPS is supported, adding an HTTPS address will throw error

New version



Update Check on Startup

  • this is the `onEvent` Method of the `DefaultUpdateService` which is called when the ImageJ UI is shown. It now includes a check for changed URLs of active update sites.

[src] UpdateCheckStartupSequence.png

Command line usage

ImageJ --update refresh-update-sites --simulate
ImageJ --update refresh-update-sites
ImageJ --update refresh-update-sites --updateall

Relevant PRs

  1. V1 imagej-updater PR
  2. V1 imagej-swing-ui PR
  3. V1 imagej-plugins-uploader-webdav PR

Relevant Issues