Project

General

Profile

Actions

Defect #3312

open

Some automatic roles by tree are not assigned to users (after importing a lot of roles)

Added by Alena Peterová about 1 year ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
Peter Štrunc
Category:
Automatic roles
Target version:
Start date:
03/22/2023
Due date:
% Done:

0%

Estimated time:
Affected versions:
Owner:

Description

Tested on 13.0.1, but probably the same situation happened also on 11.2.5
I imported 330 automatic roles by tree by the task ImportAutomaticRoleForTreeNodeFromCSVExecutor (the roles were imported to 3 distinct tree nodes)

All the automatic roles were created, but some of them were not assigned to the user, who has work position on the tree node. When I looked into the task scheduler, there are ProcessAutomaticRoleByTreeTaskExecutor in the state Waiting.

The log from the same time contains:

Mar 22 09:46:18 idmsnt czechidm[1031]: 2023-03-22 09:46:18.774 ERROR 2471897 --- [base-task-executor-1] o.s.transaction.support.TransactionSynchronizationUtils.invokeAfterCompletion : TransactionSynchronization.afterCompletion threw exc
eption
Mar 22 09:46:18 idmsnt czechidm[1031]: eu.bcvsolutions.idm.core.api.exception.AcceptedException: Concurrent task is already running. Task will be started asynchronously after concurrent task ends.
Mar 22 09:46:18 idmsnt czechidm[1031]: #011at eu.bcvsolutions.idm.core.scheduler.api.service.AbstractLongRunningTaskExecutor.lambda$validate$2(AbstractLongRunningTaskExecutor.java:256)
Mar 22 09:46:18 idmsnt czechidm[1031]: #011at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
Mar 22 09:46:18 idmsnt czechidm[1031]: #011at eu.bcvsolutions.idm.core.scheduler.api.service.AbstractLongRunningTaskExecutor.validate(AbstractLongRunningTaskExecutor.java:241)
Mar 22 09:46:18 idmsnt czechidm[1031]: #011at eu.bcvsolutions.idm.core.scheduler.task.impl.ProcessAutomaticRoleByTreeTaskExecutor.validate(ProcessAutomaticRoleByTreeTaskExecutor.java:186)
Mar 22 09:46:18 idmsnt czechidm[1031]: #011at eu.bcvsolutions.idm.core.scheduler.task.impl.ProcessAutomaticRoleByTreeTaskExecutor$$FastClassBySpringCGLIB$$75ad4df.invoke(<generated>)
Mar 22 09:46:18 idmsnt czechidm[1031]: #011at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
Mar 22 09:46:18 idmsnt czechidm[1031]: #011at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
Mar 22 09:46:18 idmsnt czechidm[1031]: #011at eu.bcvsolutions.idm.core.scheduler.task.impl.ProcessAutomaticRoleByTreeTaskExecutor$$EnhancerBySpringCGLIB$$f61b5058.validate(<generated>)
Mar 22 09:46:18 idmsnt czechidm[1031]: #011at eu.bcvsolutions.idm.core.scheduler.service.impl.DefaultLongRunningTaskManager.getValidTask(DefaultLongRunningTaskManager.java:727)


Files

Actions #1

Updated by Peter Štrunc about 1 year ago

  • Target version set to 13.0.5
Actions #2

Updated by Peter Štrunc 11 months ago

  • Target version changed from 13.0.5 to 13.0.6
Actions #3

Updated by Peter Štrunc 11 months ago

  • Target version changed from 13.0.6 to 13.0.7
Actions

Also available in: Atom PDF