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

LDAP loader API validator gives error when GroupTypes set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3.0, 2.4.0
    • Fix Version/s: None
    • Component/s: API, grouperLoader
    • Labels:
      None

      Description

      In the UI there is a field for "Grouper types applied to groups" - "comma separated GroupTypes which will be applied to the loaded groups. e.g. addIncludeExclude". If you set a value for this, the UI diagnostics say it's ok. But if you call GrouperLoaderType.validateAndScheduleLdapLoad() through the API, it reports an error. The error seems to be only with this API method call; the UI can validate, schedule and run the job, and the API can run the job with GrouperLoader.runJobOnceForGroup() successfully with no errors.

      }}{{ERROR GrouperLoaderType.attributeValueValidateRequiredAttributeAssign(2373) - Attribute 'etc:attribute:loaderLdap:grouperLoaderLdapGroupTypes' is not required or optional, but is set to 'private,requireActive' for loader type: LDAP_GROUPS_FROM_ATTRIBUTES, object name: etc:loader:dept:staffLoader

       

      The code for LDAP_GROUP_LIST is similar, so I expect it would report the same error.

       

      Unit test code PoC:

      groovy:000> GrouperLoaderType.LDAP_GROUPS_FROM_ATTRIBUTES.attributeOptional(LoaderLdapUtils.grouperLoaderLdapGroupTypesName())
      ===> false
      groovy:000> GrouperLoaderType.LDAP_GROUPS_FROM_ATTRIBUTES.attributeRequired(LoaderLdapUtils.grouperLoaderLdapGroupTypesName())
      ===> false

       

      One of these should have been true, to avoid the error above.

       

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                chad.redman@at.internet2.edu Chad Redman (unc.edu)
                Reporter:
                chad.redman@at.internet2.edu Chad Redman (unc.edu)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: