Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-4617

NPE in adminGuiConfiguration when the invalid column path has been specified

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7.1
    • Fix Version/s: 3.7.2, 3.8
    • Component/s: GUI
    • Labels:
      None
    • Environment:

      mid-102 training

    • Subscription:
      Internal
    • Git Revision:
      git-v3.7.1-71-gb1896ed

      Description

      Admin gui configuration with invalid column path will cause NPE, 500 internal server error in user list.

      This is a fragment from a role assigned to user, which has permissions to log in and display user list. See the typo for familyName attribute path (xxxfamilyName).

           <adminGuiConfiguration>
              <objectLists>
                  <objectList>
                      <type>c:UserType</type>
                      <column>
                          <name>nameColumn</name>
                          <path>name</path>
                      </column>
                      <column>
                          <name>givenNameColumn</name>
                          <path>givenName</path>
                          <previousColumn>nameColumn</previousColumn>
                      </column>
                      <column>
                          <name>familyNameColumn</name>
                          <path>xxxfamilyName</path>
                          <previousColumn>givenNameColumn</previousColumn>
                      </column>
                      <column>
                          <name>empTypeColumn</name>
                          <path>employeeType</path>
                          <display>
                              <label>Emp Type</label>
                          </display>
                          <previousColumn>familyNameColumn</previousColumn>
                      </column>
                  </objectList>
              </objectLists>
          </adminGuiConfiguration>
      

      This configuration after user logs in, fails in user list:

      Caused by: java.lang.NullPointerException: null
              at com.evolveum.midpoint.gui.api.component.ObjectListPanel.getItemDisplayName(ObjectListPanel.java:603)
              at com.evolveum.midpoint.gui.api.component.ObjectListPanel.getCustomColumnsTransformed(ObjectListPanel.java:268)
              at com.evolveum.midpoint.gui.api.component.ObjectListPanel.initCustomColumns(ObjectListPanel.java:245)
              at com.evolveum.midpoint.gui.api.component.ObjectListPanel.createTable(ObjectListPanel.java:183)
              at com.evolveum.midpoint.gui.api.component.ObjectListPanel.initLayout(ObjectListPanel.java:147)
              at com.evolveum.midpoint.gui.api.component.ObjectListPanel.<init>(ObjectListPanel.java:118)
              at com.evolveum.midpoint.gui.api.component.ObjectListPanel.<init>(ObjectListPanel.java:99)
              at com.evolveum.midpoint.gui.api.component.MainObjectListPanel.<init>(MainObjectListPanel.java:74)
              at com.evolveum.midpoint.web.page.admin.users.PageUsers$2.<init>(PageUsers.java:176)
              at com.evolveum.midpoint.web.page.admin.users.PageUsers.initTable(PageUsers.java:175)
              at com.evolveum.midpoint.web.page.admin.users.PageUsers.initLayout(PageUsers.java:166)
              at com.evolveum.midpoint.web.page.admin.users.PageUsers.<init>(PageUsers.java:138)
              at com.evolveum.midpoint.web.page.admin.users.PageUsers.<init>(PageUsers.java:118)
              ... 88 common frames omitted
      

        Attachments

          Activity

            People

            Assignee:
            vix Ivan Noris
            Reporter:
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: