Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-26971

Nuget metadata calculation fails when a user does not have Read permission for the NuGet repository

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Deferred
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Artifactory, NuGet
    • Labels:
      None
    • Severity:
      Medium
    • Location:
      External

      Description

      Problem description: 

      When a user that has only the Deploy/Cache permission deploys a Nuget package, the metadata calculation fails with a "<packages> does not have Nuget ID" warning, for example:

      [jfrt ] [WARN ] [] [o.a.a.n.NuGetServiceImpl:286  ] [art-exec-872        ] - NuGet package nuget-local:Moq.4.17.2.nupkg does not have a NuGet ID. Removed from indexing.
      

       

      What is the expected behavior? NuGet metadata calculation will not fail if the user has only the Deploy/Cache permission.

       

      Steps to reproduce: 

      • Create a local NuGet repository
      • Create a user and grant the user only Deploy/Cache permission (without Read permission for the NuGet repository)
      • Configure the NuGet client with the local repository in Artifactory
      • Download any package, for example: Moq 
      • Deploy the package to the local repository
      • Observe the reported log entry indicates that the package was removed from indexing
      • Add Read permission for the user, delete the package from the local repository, and redeploy the package. The metadata calculation works as expected.

       

      Possible workaround:

      Grant the user with Read permission for the Nuget repository

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              andreyg Andrey Granovsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-26995 -
                  SYNCHRONIZED
                  • Last Sync Date: