eXist-db / exist

eXist Native XML Database and Application Platform
https://exist-db.org
GNU Lesser General Public License v2.1
423 stars 179 forks source link

[BUG] XAR installation with dependencies may fail with unclear error #4248

Open line-o opened 2 years ago

line-o commented 2 years ago

Describe the bug

The installation of a package will fail with an unclear error message "Package descriptor not found" when loading of a dependency fails due to a connection problem with the package repository. At the time of writing this happens when trying to download dependencies from the package repository on exist-db.org due to an HTTPS downgrade (see https://github.com/eXist-db/public-repo/issues/74).

Expected behavior

A clear and concise error message stating that the repository was not available, misconfigured, which dependency could not be downloaded and from where.

The error should likely be handled in Deploy#load but is not caught at that point.

To Reproduce

  1. set the package repository URL in your packageservice to https://exist-db.org/exist/apps/public-repo
  2. try to install any package that declares a dependency that is not yet met
  3. See error

Context (please always complete the following information):

Additional context

line-o commented 2 years ago

related https://github.com/eXist-db/public-repo/pull/76