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

Search Assets endpoint only returns assets associated with a component even though it is expected some valid assets will not be directly associated with a component

    Details

    • Type: Improvement
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.36.0
    • Fix Version/s: None
    • Component/s: REST, Search
    • Labels:
    • Notability:
      4

      Description

      When you do a search via the "/v1/search/assets" endpoint you are actually searching for a component and then fetching the assets for those components. The description "Search Assets" implies you are searching for assets directly. So if you have assets that do not have components associated, you can not find them via search.

      We could just update the description, but also I think an actual asset search API would be helpful.

      e.g. https://github.com/sonatype/nexus-internal/blob/366b5638d1ded22f103c810cb89ce14eb9168775/components/nexus-repository-services/src/main/java/org/sonatype/nexus/repository/rest/internal/resources/SearchResource.java#L229

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mbucher Michael Bucher
              Last Updated By:
              Michael Oliverio Michael Oliverio
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  tigCommentSecurity.panel-title