Netcentric / accesscontroltool

Rights and roles management for AEM made easy
Eclipse Public License 1.0
147 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 empty string value of description #724

Closed kwin closed 1 month ago

kwin commented 1 month 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 empty (similar to the case in #718 where the value was null)

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":"","option":"ignoreIfAlreadyExists"}}],"usergroup":"testGroup"}]
kwin commented 1 month ago

This is totally unexpected from the API documentation in https://adobe-apiplatform.github.io/umapi-documentation/en/api/usergroupActionCommands.html#createUserGroup I therefore raised a ticket with Adobe support at https://adminconsole.adobe.com/FA907D44536A3C2B0A490D4D@AdobeOrg/support/support-cases/E-001263678