Project

General

Profile

Actions

Defect #2957

closed

When importing a business role which removes 2 subroles, only 1 is removed

Added by Alena Peterová over 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
Roman Kučera
Category:
Export Import
Target version:
Start date:
09/17/2021
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

Tested on 11.1.2
Steps to reproduce:
  • create a business role with 2 subroles (Subrole1, Subrole2)
  • export the role
  • add 2 more subroles (Subrole3, Subrole4)
  • import the role back
  • only one of the subroles is removed, the Subrole3 is still there. The second task RemoveRoleCompositionTaskExecutor ends with Warning
    Code: LONG_RUNNING_TASK_ACCEPTED
    Concurrent task is already running
    Task will be started asynchronously after concurrent task ends.

eu.bcvsolutions.idm.core.api.exception.AcceptedException: Concurrent task is already running. Task will be started asynchronously after concurrent task ends.
    at eu.bcvsolutions.idm.core.scheduler.api.service.AbstractLongRunningTaskExecutor.lambda$validate$2(AbstractLongRunningTaskExecutor.java:254)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
    at eu.bcvsolutions.idm.core.scheduler.api.service.AbstractLongRunningTaskExecutor.validate(AbstractLongRunningTaskExecutor.java:239)
    at eu.bcvsolutions.idm.core.scheduler.task.impl.RemoveRoleCompositionTaskExecutor.validate(RemoveRoleCompositionTaskExecutor.java:92)
    at eu.bcvsolutions.idm.core.scheduler.api.service.AbstractLongRunningTaskExecutor.start(AbstractLongRunningTaskExecutor.java:162)
    at eu.bcvsolutions.idm.core.scheduler.api.service.AbstractLongRunningTaskExecutor.call(AbstractLongRunningTaskExecutor.java:263)
    at eu.bcvsolutions.idm.core.scheduler.api.service.AbstractLongRunningTaskExecutor$$FastClassBySpringCGLIB$$f9eae371.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
    at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
    at eu.bcvsolutions.idm.core.scheduler.task.impl.RemoveRoleCompositionTaskExecutor$$EnhancerBySpringCGLIB$$f037167e.call(<generated>)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at eu.bcvsolutions.idm.core.config.DelegatingTransactionContextRunnable.run(DelegatingTransactionContextRunnable.java:39)
    at org.springframework.security.concurrent.DelegatingSecurityContextRunnable.run(DelegatingSecurityContextRunnable.java:84)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)

Files

business_role_removal.png (38.8 KB) business_role_removal.png Alena Peterová, 09/17/2021 02:42 PM
business-role-with-2-subroles.zip (7.43 KB) business-role-with-2-subroles.zip Alena Peterová, 04/11/2022 11:40 AM
subroles_more_threads.png (190 KB) subroles_more_threads.png Alena Peterová, 04/11/2022 12:07 PM
Actions

Also available in: Atom PDF