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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10
    • Fix Version/s: 2.11.1, 3.0.0-m3
    • Component/s: NuGet
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      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

            Assignee:
            mprescott Michael Prescott
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title