Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
2.3.0, 2.4.0
-
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.