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

    • Bug
    • Resolution: Fixed
    • Major
    • 3.39.0
    • 3.35.0, 3.36.0, 3.37.0
    • UI
    • hosted in k8s
    • 1
    • NXRM Immortals Sprint 29, NXRM Immortals Sprint 30
    • 3
    • support-escalated
    • 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

              mlukaretkyi Maksym Lukaretkyi
              adam.wyzgol Adam Wyżgoł
              Rich Seddon Rich Seddon
              NXRM - Optimus
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                tigCommentSecurity.panel-title