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

Nexus throw exception when id of proxy repository id is prefix of hosted one

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.35.0, 3.36.0, 3.37.0
    • Fix Version/s: 3.39.0
    • Component/s: UI
    • Labels:
    • Environment:
      hosted in k8s
    • Story Points:
      1
    • Sprint:
      NXRM Immortals Sprint 29, NXRM Immortals Sprint 30
    • Notability:
      3
    • InvestmentLayer:
      support-escalated
    • Aha Concept:
      non-concept

      Description

      We have two repositories, one proxy named like aaa and hosted one named aaa-internal, when I open repository managemnent page I got exception:
      nexus-coreui-plugin-prod.js?_v=3.37.0-01&_e=OSS:formatted:20911

      Uncaught TypeError: Cannot read properties of undefined (reading 'nugetVersion')
      at constructor.<anonymous> (nexus-coreui-plugin-prod.js?_v=3.37.0-01&_e=OSS:formatted:20911)
      at constructor.each (baseapp-prod.js?_v=3.37.0-01&_e=OSS:1)
      at constructor.<anonymous> (nexus-coreui-plugin-prod.js?_v=3.37.0-01&_e=OSS:formatted:20902)
      at ctor.fire (baseapp-prod.js?_v=3.37.0-01&_e=OSS:1)
      at constructor.doFireEvent (baseapp-prod.js?_v=3.37.0-01&_e=OSS:1)
      at constructor.b.doFireEvent (baseapp-prod.js?_v=3.37.0-01&_e=OSS:1)
      at constructor.fireEventArgs (baseapp-prod.js?_v=3.37.0-01&_e=OSS:1)
      at constructor.fireEvent (baseapp-prod.js?_v=3.37.0-01&_e=OSS:1)
      at constructor.onProxyLoad (baseapp-prod.js?_v=3.37.0-01&_e=OSS:1)
      at ctor.triggerCallbacks (baseapp-prod.js?_v=3.37.0-01&_e=OSS:1)

      During debugging I found that problem is in that code, findRecord match also prefix not only exact match, because of that hosted repo was found and there is no attribute nugetProxy

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mlukaretkyi Maksym Lukaretkyi
              Reporter:
              adam.wyzgol Adam Wyżgoł
              Last Updated By:
              Michael Oliverio Michael Oliverio
              Team:
              NXRM - Optimus
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title