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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.12.1
    • Fix Version/s: None
    • Component/s: Security, UI
    • Labels:
    • Story Points:
      2
    • Release Note:
      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

            Assignee:
            elijahel Elijah El-Haddad
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Peter Lynch Peter Lynch
            Team:
            NXRM - Tron
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title