Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-1548

Edit LDAP Loader in UI fails when legacy group type doesn't exist

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 2.3.0.patch
    • Fix Version/s: 2.3.1, 2.4.0, 2.3.0.patch
    • Component/s: UI
    • Labels:
      None

      Description

      The Loader edit function added in UI patch #23 works for us when creating a new Loader job, but does not allow us to edit an existing one. The UI error is "Error: Problem calling method editGrouperLoaderSave on edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2GrouperLoader".

      The offending line appears to be when removing the attribute for the existing loader job. It searches for attribute def name etc:legacy:attribute:legacyGroupType_grouperLoader, which on our system does not exist. We only started using LDAP Loader jobs after migrating to 2.3.0. The group I was trying to edit only had attribute etc:attribute:loaderLdap:grouperLoaderLdap.

      If I step through the UI code at that point and change the attribute to retrieve etc:attribute:loaderLdap:grouperLoaderLdap instead, this does delete the attribute and recreate it successfully.

      Snipped stack trace:

      java.lang.NullPointerException: Problem calling method editGrouperLoaderSave on edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2GrouperLoader
      	at edu.internet2.middleware.grouper.attr.assign.AttributeAssignGroupDelegate.assertCanUpdateAttributeDefName(AttributeAssignGroupDelegate.java:107)
      	at edu.internet2.middleware.grouper.attr.assign.AttributeAssignBaseDelegate.removeAttributeHelper(AttributeAssignBaseDelegate.java:616)
      	at edu.internet2.middleware.grouper.attr.assign.AttributeAssignBaseDelegate.removeAttribute(AttributeAssignBaseDelegate.java:602)
      	at edu.internet2.middleware.grouper.attr.assign.AttributeAssignBaseDelegate.removeAttribute(AttributeAssignBaseDelegate.java:368)
      	at edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2GrouperLoader.editGrouperLoaderSave(UiV2GrouperLoader.java:968)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ...
      

        Attachments

          Activity

            People

            • Assignee:
              mchyzer Chris Hyzer
              Reporter:
              cer28 Chad Redman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: