You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We observe that from time to time the createUser fails randomly.
Mainly it fails to get the created user path in getAuthorizableNodeWithRetry as seen below in the stack trace.
While debugging, the user is created but the code logic that do this retry seems to be wrong or not waiting long enough (happening more often on cloud AEM).
[ForkJoinPool-1-worker-0] ERROR com.adobe.cq.sites.testing.utils.TestContentBuilder - Authorizable testCopyPageToSameFolderWithNewLabelAsAdmin_PWmMZrkw not found!
org.apache.sling.testing.clients.ClientException: Authorizable testCopyPageToSameFolderWithNewLabelAsAdmin_PWmMZrkw not found!
at com.adobe.cq.testing.client.security.AbstractAuthorizable.getAuthorizableNodeWithRetry(AbstractAuthorizable.java:270)
at com.adobe.cq.testing.client.security.AbstractAuthorizable.getAuthorizablePath(AbstractAuthorizable.java:225)
at com.adobe.cq.testing.client.security.AbstractAuthorizable.(AbstractAuthorizable.java:82)
at com.adobe.cq.testing.client.security.User.(User.java:56)
at com.adobe.cq.testing.client.security.User.createUser(User.java:217)
at com.adobe.cq.testing.client.SecurityClient.createUser(SecurityClient.java:169)
What seems wrong is that it need to poll to know the created user path, shouldn't the endpoint used to create the user returning the path of the created user in the response ?
The text was updated successfully, but these errors were encountered:
Yes I debugged once this case, the user is created, the endpoint that is used to create the user wouldn't return 200 anyway otherwise, also it would make sense to log or assert that the returned response from the create operation contains the user path.
It can be that the search indexing is slower from time to time, so polling for a longer time may solve it (for example it could be configurable).
tyge68
added a commit
to tyge68/aem-testing-clients
that referenced
this issue
Mar 16, 2020
We observe that from time to time the createUser fails randomly.
Mainly it fails to get the created user path in getAuthorizableNodeWithRetry as seen below in the stack trace.
While debugging, the user is created but the code logic that do this retry seems to be wrong or not waiting long enough (happening more often on cloud AEM).
[ForkJoinPool-1-worker-0] ERROR com.adobe.cq.sites.testing.utils.TestContentBuilder - Authorizable testCopyPageToSameFolderWithNewLabelAsAdmin_PWmMZrkw not found!
org.apache.sling.testing.clients.ClientException: Authorizable testCopyPageToSameFolderWithNewLabelAsAdmin_PWmMZrkw not found!
at com.adobe.cq.testing.client.security.AbstractAuthorizable.getAuthorizableNodeWithRetry(AbstractAuthorizable.java:270)
at com.adobe.cq.testing.client.security.AbstractAuthorizable.getAuthorizablePath(AbstractAuthorizable.java:225)
at com.adobe.cq.testing.client.security.AbstractAuthorizable.(AbstractAuthorizable.java:82)
at com.adobe.cq.testing.client.security.User.(User.java:56)
at com.adobe.cq.testing.client.security.User.createUser(User.java:217)
at com.adobe.cq.testing.client.SecurityClient.createUser(SecurityClient.java:169)
What seems wrong is that it need to poll to know the created user path, shouldn't the endpoint used to create the user returning the path of the created user in the response ?
The text was updated successfully, but these errors were encountered: