Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-18345

Running a "/search/assets" REST API call with just a "repository" query parameter does not give full results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.12.1, 3.14.0
    • Fix Version/s: 3.15.0
    • Component/s: REST, Search
    • Labels:

      Description

      Reproduce steps... 

      Bring up Nexus Repo 3.14.0, and run a Maven build against it to populate the "maven-central" proxy repository.  Then try using the fallowing REST API call:

      curl -X GET "http://localhost:8081/service/rest/v1/search/assets?repository=maven-central" -H "accept: application/json"

      This will yield just one page of results, and the continuation token is not set:

        }, {
          "downloadUrl" : "http://localhost:8081/repository/maven-central/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.pom",
          "path" : "org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.pom",
          "id" : "bWF2ZW4tY2VudHJhbDpiYjZjNmVmOTc5NmRhYzgzYmRlZjI5MTI2MGViMDNjYw",
          "repository" : "maven-central",
          "format" : "maven2",
          "checksum" : {
            "sha1" : "d8e08f33563f684917311978da2ff03a9d0022ab",
            "md5" : "138f0494c7ed1409a33902efa5b3940f"
          }
        }, {
          "downloadUrl" : "http://localhost:8081/repository/maven-central/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.pom.sha1",
          "path" : "org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.pom.sha1",
          "id" : "bWF2ZW4tY2VudHJhbDozZjVjYWUwMTc2MDIzM2I2NmM4MzVhNjE2NDBkMTE0Nw",
          "repository" : "maven-central",
          "format" : "maven2",
          "checksum" : {
            "sha1" : "7d16acee4bca389ef00952439d9fcf8da6010d13",
            "md5" : "c5eb086b616879e95e8310bb7007f8d5"
          }
        } ],
        "continuationToken" : null
      }
      
      

      In my case, the page returned had 133 assets, even though there were many more than this in my maven-central proxy.

       Expected: The results should include all repository assets, or up to the 10,000 default limit.

        Attachments

          Activity

            People

            • Assignee:
              dbradicich Damian Bradicich
              Reporter:
              rseddon Rich Seddon
              Last Updated By:
              Peter Lynch
              Team:
              NXRM - Tron
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: