Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-16091

'length' attribute in managed object causes 'Uncaught TypeError' error in web console

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.5.0.3, 6.5.0.4, 6.5.1.0, 7.0.1
    • Fix Version/s: 7.1.0
    • Component/s: None
    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      2
    • Sprint:
      2021.2 UI EarlyBirds
    • Support Ticket IDs:
    • Epic Link:

      Description

      When adding an attribute called 'length' to a managed object (user, for example), it causes a 'Uncaught TypeError' error in the web console, when doing the following:

      1. Creating a new user
      2. Clicking the details of an existing object

      In either case, no fields are available in the UI.

      Additionally, in 6.5.0.3/6.5.0.4 for (1), clicking any of the menu options (Dashboards, Configure, Manage) do not work - only 'Log out' and 'Self-service' works. In 6.5.1.0 and 7.0.1, all the options work.

      Firefox:

      Uncaught TypeError: e is undefined
       setGridColumnSize jsoneditor-0.7.9-min.js:10
       layoutEditors jsoneditor-0.7.9-min.js:8
       i jsoneditor-0.7.9-min.js:7
       layoutEditors jsoneditor-0.7.9-min.js:8
       build jsoneditor-0.7.9-min.js:8
       init jsoneditor-0.7.9-min.js:7
       _loadExternalRefs jsoneditor-0.7.9-min.js:7
       init jsoneditor-0.7.9-min.js:7
       o jsoneditor-0.7.9-min.js:7
       setupEditor GenericEditResourceView.js:197
       render GenericEditResourceView.js:108
       n Lodash
       renderTemplate UIUtils.js:75
       jQuery 11

      Chrome:

      Uncaught TypeError: Cannot set property 'className' of undefined
       at i.setGridColumnSize (jsoneditor-0.7.9-min.js:10)
       at jsoneditor-0.7.9-min.js:8
       at i (jsoneditor-0.7.9-min.js:7)
       at i.layoutEditors (jsoneditor-0.7.9-min.js:8)
       at i.build (jsoneditor-0.7.9-min.js:8)
       at jsoneditor-0.7.9-min.js:7
       at o._loadExternalRefs (jsoneditor-0.7.9-min.js:7)
       at o.init (jsoneditor-0.7.9-min.js:7)
       at new o (jsoneditor-0.7.9-min.js:7)
       at EditUserView.setupEditor (GenericEditResourceView.js?v=6.5.0.4:197)

       

      Workaround: use a different name for the attribute other than 'length'

        Attachments

        1. List.user.details.6510.png
          List.user.details.6510.png
          536 kB
        2. New.User.6503.6504.png
          New.User.6503.6504.png
          430 kB
        3. NewUserClientError.txt
          6 kB
        4. uncaught.typeerror.txt
          7 kB
        5. UserDetailsClientError.txt
          14 kB

          Activity

            People

            Assignee:
            cameron.martin Cameron Martin
            Reporter:
            paul.tang Paul Tang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: