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

Search API sorting doesn't work

    XMLWordPrintable

    Details

      Description

      We have upgraded Nexus from OSS 3.21.1-01 to 3.25, and while our repositories looked fine in the browser, the REST API for search and assets seems to be completely ignoring the sorting parameters.

      For example
      service/rest/v1/search?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.

      We have observed the same behavior with two maven and one npm repository, so it doesn't seem to be connected to the repo type.

      As it is, it's impossible to get the 'latest' artifact with version 3.25

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mshevelov Mykyta Shevelov
              Reporter:
              major.laszlo@protonmail.com Laszlo Major
              CC:
              Ryan Marotz
              Last Updated By:
              Joe Tom
              Team:
              NXRM - Trinity
              Votes:
              7 Vote for this issue
              Watchers:
              17 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title