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

Nuget push using a SAML user pushes the package but gives a 403 in the client and in request.log

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.8.7
    • Fix Version/s: None
    • Component/s: NuGet
    • Labels:
      None

      Description

      Nuget push using a SAML user gives a 403 when using the SAML user. In the UI we can see the package deployed in the repository along with another package null.null.null.nupkg. Here is the error in the client side 

      PS C:\downloads\prasanna-test\jQuery.3.4.1> nuget push .\Dapper.1.60.9\ -Source Prasanna-test
      Pushing .signature.p7s to 'http://mill.jfrog.info:12374/artifactory/api/nuget/nuget-local'...
      PUT http://mill.jfrog.info:12374/artifactory/api/nuget/nuget-local/
      Created http://mill.jfrog.info:12374/artifactory/api/nuget/nuget-local/ 262ms
      Your package was pushed.
      Pushing Dapper.1.60.9.nupkg to 'http://mill.jfrog.info:12374/artifactory/api/nuget/nuget-local'...
      PUT http://mill.jfrog.info:12374/artifactory/api/nuget/nuget-local/
      Created http://mill.jfrog.info:12374/artifactory/api/nuget/nuget-local/ 1187ms
      Your package was pushed.
      Pushing Dapper.dll to 'http://mill.jfrog.info:12374/artifactory/api/nuget/nuget-local'...
      PUT http://mill.jfrog.info:12374/artifactory/api/nuget/nuget-local/
      Forbidden http://mill.jfrog.info:12374/artifactory/api/nuget/nuget-local/ 93ms
      Response status code does not indicate success: 403 (Forbidden).

       

      Request.log :

      20190614220752|99|REQUEST|12.244.40.18|santhoshp@jfrog.com|PUT|/api/nuget/nuget-local/|HTTP/1.1|201|-1
      20190614220753|1158|REQUEST|12.244.40.18|santhoshp@jfrog.com|PUT|/api/nuget/nuget-local/|HTTP/1.1|201|-1
      20190614220753|64|REQUEST|12.244.40.18|santhoshp@jfrog.com|PUT|/api/nuget/nuget-local/|HTTP/1.1|403|-1

       

      artifactory.log :

      2019-06-14 22:07:52,094 [http-nio-8081-exec-5] [INFO ] (o.a.e.UploadServiceImpl:386) - Deploy to 'nuget-local:null.null.nupkg' Content-Length: unspecified
      2019-06-14 22:07:52,120 [art-exec-345] [WARN ] (o.j.r.n.h.NuGetSpecReader:44) - Could not find .nuspec file entry, returning an invalid metadata
      2019-06-14 22:07:52,122 [art-exec-345] [WARN ] (o.a.a.n.NuGetServiceImpl:282) - NuGet package nuget-local:null.null.nupkg does not have a NuGet ID. Removed from indexing.
      2019-06-14 22:07:53,316 [http-nio-8081-exec-7] [INFO ] (o.a.e.UploadServiceImpl:386) - Deploy to 'nuget-local:Dapper.1.60.9.nupkg' Content-Length: unspecified
      2019-06-14 22:07:53,356 [art-exec-347] [INFO ] (o.j.r.n.NuGetWorkContext:68) - Indexing NuGet metadata for repo 'nuget-local' on path 'Dapper.1.60.9.nupkg'
      2019-06-14 22:07:53,363 [art-exec-347] [INFO ] (o.j.r.n.NuGetWorkContext:88) - Finished writing Nuget metadata for repo nuget-local on path 'Dapper.1.60.9.nupkg' at 1560550073363 ms
      2019-06-14 22:07:53,528 [http-nio-8081-exec-3] [WARN ] (o.j.r.n.h.NuGetSpecReader:44) - Could not find .nuspec file entry, returning an invalid metadata
      2019-06-14 22:07:53,534 [http-nio-8081-exec-3] [WARN ] (o.a.r.ArtifactoryResponseBase:125) - Sending HTTP error code 403: Not enough permissions to overwrite artifact 'nuget-local:null.null.nupkg' (user 'santhoshp@jfrog.com' needs DELETE permission).
      2019-06-14 22:08:07,782 [http-nio-8081-exec-2] [WARN ] (o.j.r.n.h.NuGetSpecReader:44) - Could not find .nuspec file entry, returning an invalid metadata

      I have attached the screenshot of the repository and the packages created. Then added the delete permission for the same user and then retried deploying. Did not get the 403, however, the null.null.null.npkg was still present in the local folder.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              prasannan Prasanna Narayana
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: