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

Uncaught TypeError: Cannot read property 'length' of null trying to save a role which cannot be found

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 3.12.1
    • Security, UI
    • 2
    • Yes

    Description

      Configure LDAP server and LDAP realm.

      Try to map an LDAP role that does not exist.

      Click Save to save the role.

      Saving the role will fail because Nexus tries to find the role in LDAP and can't. The UI should show a message that the role could could not be found.

      The javascript console contains this error:

      nexus-coreui-plugin-prod.js?_v=3.12.1-01:1 Uncaught TypeError: Cannot read property 'length' of null
      at j.load (nexus-coreui-plugin-prod.js?_v=3.12.1-01:1)
      at A.fire (baseapp-prod.js?_v=3.12.1-01:1)
      at j.continueFireEvent (baseapp-prod.js?_v=3.12.1-01:1)
      at j.fireEventArgs (baseapp-prod.js?_v=3.12.1-01:1)
      at j.a.fireEventArgs (baseapp-prod.js?_v=3.12.1-01:1)
      at j.fireEvent (baseapp-prod.js?_v=3.12.1-01:1)
      at j.onProxyLoad (baseapp-prod.js?_v=3.12.1-01:1)
      at A.processResponse (baseapp-prod.js?_v=3.12.1-01:1)
      at A.<anonymous> (baseapp-prod.js?_v=3.12.1-01:1)
      at baseapp-prod.js?_v=3.12.1-01:1

       

      Expected

      - there should be no javascript errors in this case.

      Attachments

        Activity

          People

            elijahel Elijah El-Haddad [X] (Inactive)
            plynch Peter Lynch
            Peter Lynch Peter Lynch
            NXRM - Tron
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              tigCommentSecurity.panel-title