组织角色分配时,将用户角色分配为组织成员,事务实例执行失败

  • Choerodon平台版本:0.18.0

  • 运行环境:一键安装

  • 问题描述:
    创建了一个用户,并在“组织角色分配”中,添加用户角色为“组织成员”,然后查看组织事务实例执行情况,结果为失败。将用户角色分配为“组织管理员”执行成功。
    反复执行,依然如此,新增用户后再试,也是如此:只能分配为 组织管理员,不能分配为 组织成员

错误信息如下:


异常信息:

io.choerodon.core.exception.CommonException: io.choerodon.core.exception.CommonException: error.group.not.sync
at io.choerodon.devops.app.service.impl.GitlabGroupMemberServiceImpl.lambda$createGitlabGroupMemberRole$1(GitlabGroupMemberServiceImpl.java:80)
at io.choerodon.devops.app.service.impl.GitlabGroupMemberServiceImpl$$Lambda$909.00000000B8061CC0.accept(Unknown Source)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:496)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:486)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:241)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at io.choerodon.devops.app.service.impl.GitlabGroupMemberServiceImpl.createGitlabGroupMemberRole(GitlabGroupMemberServiceImpl.java:63)
at io.choerodon.devops.api.eventhandler.SagaHandler.handleGitlabGroupMemberEvent(SagaHandler.java:271)
at sun.reflect.GeneratedMethodAccessor474.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.choerodon.asgard.saga.consumer.SagaConsumer.invoke(SagaConsumer.java:84)
at io.choerodon.asgard.saga.consumer.SagaConsumer.lambda$null$0(SagaConsumer.java:56)
at io.choerodon.asgard.saga.consumer.SagaConsumer$$Lambda$905.0000000080015FF0.get(Unknown Source)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:813)
Caused by: io.choerodon.core.exception.CommonException: error.group.not.sync
at io.choerodon.devops.infra.persistence.impl.DevopsProjectRepositoryImpl.queryDevopsProject(DevopsProjectRepositoryImpl.java:27)
at io.choerodon.devops.app.service.impl.GitlabGroupMemberServiceImpl.operation(GitlabGroupMemberServiceImpl.java:201)
at io.choerodon.devops.app.service.impl.GitlabGroupMemberServiceImpl.lambda$createGitlabGroupMemberRole$1(GitlabGroupMemberServiceImpl.java:71)
… 22 more

您好,组织成员角色不需要在gitlab分配对应的角色,后面会去掉这个逻辑,目前该实例失败不影响使用