Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-7732

Expiring item cache in Nuget proxy repositories causes them to auto-block frequently

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.11.1, 3.0.0-m3
    • 2.10
    • NuGet
    • None
    • 2
    • Sprint 31, Sprint 32

    Description

      The default item max age in NuGet proxy repositories is set to 1440 minutes (I'm not sure why, artifacts should be immutable).

      When it expires for a a path Nexus issues a request to the remote to check for updates. Unfortunately, it uses the full path of the artifact, e.g.:

      http://localhost:8081/nexus/service/local/nuget/nuget-repo/Extended.Wpf.Toolkit/2.2.0/Extended.Wpf.Toolkit-2.2.0.nupkg

      This doesn't work for NuGet feeds, it results in a 400 response. This 400 response causes the repository to auto-block.

      Note that the initial download of an artifact doesn't do this (even if the full path is requested through the proxies /content URL), it uses the right path for NuGet:

      http://localhost:8081/nexus/service/local/nuget/nuget-repo/Extended.Wpf.Toolkit/2.2.0/

      Attachments

        Activity

          People

            mprescott Michael Prescott
            rseddon Rich Seddon
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              tigCommentSecurity.panel-title