sonatype-nexus-community / nexus-repository-composer

Composer support for the Nexus Repository Manager (work in progress!)
Eclipse Public License 1.0
211 stars 82 forks source link

Return packages.json if packages/list.json does not exist #150

Open marioja opened 4 months ago

marioja commented 4 months ago

If you go to the drupal 7 repository https://packages.drupal.org/7/ you will find that it does not support the packages/list.json url. In that case we just return the packages.json that was returned. This was making retrieving packages.json from a nexus proxy for drupal 7 return a status 500 error.

(brief, plain english overview of your changes here)

instead of failing a get for packages.json from a proxy which does not support the packages/list.json url, this change will instead return the original information from the target repository packages.json response.

This pull request makes the following changes:

(If there are changes to the UI, please include a screenshot so we know what to look for!) no change

(If there are changes to user behavior in general, please make sure to update the docs, as well) no change

It relates to the following issue #s: none