added sleep of 20 seconds betweeb Site/VRE Creation and users assoc.
This commit is contained in:
parent
cb7759fc6f
commit
fa30405115
|
@ -154,6 +154,7 @@ public class VREDeployerServiceImpl extends RemoteServiceServlet implements Vre
|
|||
private static final String VRE_MANAGER = "VRE-Manager";
|
||||
private static final String VRE_DESIGNER = "VRE-Designer";
|
||||
|
||||
private static final int WAITING_TIME_Seconds = 24;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -938,7 +939,13 @@ public class VREDeployerServiceImpl extends RemoteServiceServlet implements Vre
|
|||
log.info("Trying to create VRE Group Folder through Storage Hub ...");
|
||||
createVRESharedGroupFolder(uman, vreCreated, designer, manager, description);
|
||||
|
||||
log.info("--- createVRESharedGroupFolder OK, now assigning the designer and manager to the Site (VRE)");
|
||||
log.info("--- createVRESharedGroupFolder OK, \n "
|
||||
+ "now assigning the designer and manager to the Site (VRE), sleeping "+ WAITING_TIME_Seconds + " seconds to allow operations on Keycloak ...");
|
||||
|
||||
//the creation of groups on Keycloak is asynchronous, if we send an add user to group before the group is actually created on keycloak it would fails, so we wait
|
||||
Thread.sleep(WAITING_TIME_Seconds / 2 * 1000);
|
||||
log.info("\n still waiting ... 10 seconds more ... ");
|
||||
Thread.sleep(WAITING_TIME_Seconds / 2 * 1000);
|
||||
|
||||
RoleManager rm = new LiferayRoleManager();
|
||||
|
||||
|
|
Loading…
Reference in New Issue