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

NPM packages are not listing fully when using NPM search endpoint

    XMLWordPrintable

    Details

      Description

      Problem description:

      All the NPM packages are not listed via the NPM search endpoint curl command. The below rest API should result in all the packages with their latest version. But it is not listing all the available packages in the repository. I have attached the screenshot of the available NPM packages in the repository.

       

      Endpoint:
      curl "https://hostname.jfrog.io/artifactory/api/npm/npm-local/-/v1/search?text=org.test"

       

      Result:
      {"objects":[{"package":{"name":"org.test.aaa","description":null,"maintainers":[],"version":"0.1.0","date":null,"keywords":[],"author":null}},{"package":{"name":"org.test.bbb","description":null,"maintainers":[],"version":"0.3.0","date":null,"keywords":[],"author":null}},{"package":{"name":"org.test.ccc","description":null,"maintainers":[],"version":"0.3.0","date":null,"keywords":[],"author":null}},{"package":{"name":"org.test.ddd","description":null,"maintainers":[],"version":"0.3.0","date":null,"keywords":[],"author":null}}]}%

       

      Expected behavior:
      Artifactory should display all the NPM packages while searching with the below NPM search endpoint.
      curl "https://hostname.jfrog.io/artifactory/api/npm/npm-local/-/v1/search?text=org.test"

       

      Steps to reproduce:
      1) Deploy the npm packages as mentioned below to a NPM local repository:
      org.test.package1 -500 versions
      org.test.package2 -500 versions
      org.test.package3 -500 versions
      org.test.package4 -500 versions

      2) Now execute the below command and check the result:
      curl "https://hostname.jfrog.io/artifactory/api/npm/npm-local/-/v1/search?text=org.test"

       

      Environment details:
      Artifactory version in which the bug was reproduced: tested on 7.27.9
      DB type & Version : PostgreSQL 9.6
      Is this an HA env: No
      Is this On-Prem or SaaS: SaaS
      OS details if relevant: NA

      Impact:

      Unable to list all the available packages with their latest version using this NPM search endpoint. With AQL and Rest API, all the packages along with all of its versions are listed (not the latest version alone).

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              sandeepa Sandeep Anikapati
              Votes:
              10 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: