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

Null pointer exception while fetching package version details for the go package via REST API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 6.23.28, 7.31.10
    • Fix Version/s: 7.37.13
    • Component/s: Go, REST API
    • Labels:
      None
    • Environment:

      Artifactory version:  6.x and 7.x latest
      DB type & Version :Derby
      Is this an HA env? - No
      Is this On-Prem or SaaS? - On-prem

    • Severity:
      High
    • Location:
      External

      Description

      Problem description:

      When executing the below-mentioned URL to fetch the version details of the Go package via virtual repository, it results in 500 ( Null pointer exception ) error responses 

      curl -uadmin:password http://<ARTIFACTORY_URL>/artifactory/api/go/go/github.com/cncf/udpa/go/@latest 
      

      Expected behavior:

      We should be able to retrieve the package version details as expected.

      Steps to reproduce:

      1. Create repositories in the following pattern :

      go ( virtual )

      – go-local ( local )

      – github-com ( remote - https://github.com/ )

      – gocenter ( remote - https://proxy.golang.org )

      2. Execute the REST API as follows :

       

      curl -uadmin:password http://<ARTIFACTORY_URL>/artifactory/api/go/go/github.com/cncf/udpa/go/@latest

      {

        "errors" : [

      {     "status" : 500,     "message" : "An unexpected error has occurred, please check Artifactory logs for further details."   }

      ]

      }%

      Possible workaround: No

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              vigneshc Vignesh C
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

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