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

increase default max items per page for components and assets resource

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 3.18.1
    • REST
    • 4

    Description

      When using the Nexus /assets or /components API to get lists of assets and components the result set is limited to 10 items per page.

      https://github.com/sonatype/nexus-public/blob/master/components/nexus-repository/src/main/java/org/sonatype/nexus/repository/rest/internal/resources/AssetsResource.java#L107

      https://github.com/sonatype/nexus-public/blob/master/components/nexus-repository/src/main/java/org/sonatype/nexus/repository/rest/internal/resources/ComponentsResource.java#L140

      The max items per page are reportedly too low to be practical for general use and appear to have been arbitrarily chosen when pagination was first introduced.

      Expected

      Increase the hard coded maximum items per page for pagination resources to a more practical default value.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              plynch Peter Lynch
              Rich Seddon Rich Seddon
              Votes:
              13 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:

                tigCommentSecurity.panel-title