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

Removal of coreui_Component readAssets method removes the ability to query for Yum assets

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Do
    • Affects Version/s: 3.18.0, 3.18.1, 3.19.0, 3.19.1
    • Fix Version/s: None
    • Component/s: UI, Yum
    • Labels:
      None

      Description

      It should be possible to still maintain the readAssets method in the coreui_Component action for command-line extdirect calls while still using the coreui_Browse action, read method for NXUI. Our project heavily relies on the readAssets method (https://github.com/sonatype/nexus-public/blob/release-3.16.2-01/plugins/nexus-coreui-plugin/src/main/java/org/sonatype/nexus/coreui/ComponentComponent.groovy#L218) to retrieve a non-paginated, quick response JSON object in order to perform Nexus3 Yum repository artifact promotion for our CI/CD pipeline.

      This method was removed in 3.17.0-01, and effectively broke us. Now, we would need to perform two operations to obtain the same result: coreui_Browse (read) + iteration of result + coreui_Component (readAsset) for each component, which results in potentially thousands of API calls (instead of just one, as coreui_Component (readAssets) provided).

       

      I'd like to request for the readAssets method to be added back into the ComponentComponent.groovy to be able to be called via API REST external script calls (e.g. non NXUI).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              cinglese Charles Inglese
              Last Updated By:
              Joe Tom Joe Tom
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title