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

Search API sorting direction doesn't work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 3.41.0
    • Fix Version/s: None
    • Component/s: REST, Search
    • Labels:
      None

      Description

      We have upgraded Nexus to 3.41.0, and while our repositories looked fine in the browser, the REST API for search and assets seems to be completely ignoring the sorting direction parameter.

      For example
      service/rest/v1/search/assets?sort=version&direction=desc&repository=maven-releases
      Returned exactly the same result with direction as 'asc'. It seemed to be returning the same order as it is in the browser.

      As it is, it's impossible to get the 'latest' Maven SNAPSHOT artifact with version 3.41.0

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              thomas_da_rocha_socrambanque Thomas DA ROCHA
              Last Updated By:
              Thomas DA ROCHA Thomas DA ROCHA
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title