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

External repo returns 400: Invalid Request resulting in caching 0 byte artifacts #147

Open jodygarnett opened 10 months ago

jodygarnett commented 10 months ago

We were accidentally caching a maven repository that was no longer functioning:

  1. A community had setup a maven repository as a GitHub submodule for developer use
  2. They then started using the raw GitHub endpoint (receiving a warning letter from GitHub)
  3. We setup a nexus cache of this location to give the community time to manage their artifacts better
  4. The original content was removed
  5. After the cache contents had timed out, Nexus attempted to "refresh" artifacts that were no longer present resulting in 400: Invalid Request errors.

The resulting errors showed up in nexus as zero byte files; leading to widespread confusion.

Stable behaviour if external repository being cached in unavailable.

If the http 400: Invalid Request response code is encountered, do not cache artifact contents.

The community ticket is here: https://trac.osgeo.org/osgeo/ticket/2978

TuningYourCode commented 8 months ago

Hi, just wanted to tell your that this repository / issue tracker is for the composer plugin of nexus repository manager. Composer is the package manager for php libraries.

As you mentioned maven repository your issue is definitely in the wrong place :)

jodygarnett commented 8 months ago

lol, okay thanks.