Netcentric / accesscontroltool

Rights and roles management for AEM made easy
Eclipse Public License 1.0
150 stars 92 forks source link

java.io.IOException: Errors updating groups: [ActionCommandError [errorCode=error.command.string_expected, requestID=null, index=0, step=0, message=String too short for field: description, user=null] for null values of description #718

Closed kwin closed 4 months ago

kwin commented 4 months ago

The feature added in #698 throws the following exception

07:42:16.483: ERROR: Could not process yaml files e=biz.netcentric.cq.tools.actool.authorizableinstaller.AuthorizableCreatorException: java.io.IOException: Errors updating groups: [ActionCommandError [errorCode=error.command.string_expected, requestID=null, index=0, step=0, message=String too short for field: description, user=null], 

This seems to happen in case the description of a user is not set

According to https://adobe-apiplatform.github.io/umapi-documentation/en/api/ErrorRef.html error.command.string_expected means:

The user name or requestId field is not a JSON string

The underlying UMAPI request JSON payload looks like this in this case

[{"do":[{"createUserGroup":{"description":null,"option":"ignoreIfAlreadyExists"}}],"usergroup":"testGroup"}]