Project

General

Profile

Defect #2903

Event: Prevent to use original source from parent event (wrong original source is propaged in event and cannot be used)

Added by Radek Tomiška 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Category:
Event
Target version:
Start date:
08/09/2021
Due date:
% Done:

100%

Estimated time:
Affected versions:
Milestones:

Description

Original source is propagated from parent event, which can have different content type. Prevent to propagate orginal source in event properties.

Exception:

java.lang.ClassCastException: class eu.bcvsolutions.idm.core.api.dto.IdmIdentityContractDto cannot be cast to class eu.bcvsolutions.idm.core.api.dto.IdmIdentityDto (eu.bcvsolutions.idm.core.api.dto.IdmIdentityContractDto and eu.bcvsolutions.idm.core.api.dto.IdmIdentityDto are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @3c9bfddc)
    at eu.bcvsolutions.idm.hyundai.event.processor.identity.HyundaiIdentityGenerateEmailProcessor.process(HyundaiIdentityGenerateEmailProcessor.java:53)

Workaround: load original dto directly in processor ~ not use provided origianal source


Related issues

Related to CzechIdM - Task #468: Account management is synchronous with Role add operationClosed05/31/2017

History

#1 Updated by Radek Tomiška 2 months ago

#2 Updated by Radek Tomiška 2 months ago

  • Description updated (diff)

#3 Updated by Radek Tomiška 2 months ago

  • Status changed from New to In Progress

#4 Updated by Radek Tomiška 2 months ago

  • Related to Task #468: Account management is synchronous with Role add operation added

#5 Updated by Radek Tomiška 2 months ago

  • Related to deleted (Task #1520: Duplicate roles )

#6 Updated by Radek Tomiška 2 months ago

  • Affected versions Hematite (8.0.0) added
  • Affected versions deleted (Pyrite (9.5.0))

#7 Updated by Radek Tomiška 2 months ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Radek Tomiška to Vít Švanda
  • % Done changed from 0 to 90

I fixed original source propagation, when different parent content type is given (e.g. when contract is saved, then identity event is published).

Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/bf53f91a59bfb39f49a23f695acbbaae3bbf243a

Could you provide me a feedback please?

#8 Updated by Vít Švanda about 2 months ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Vít Švanda to Radek Tomiška
  • % Done changed from 90 to 100

I did review and tested it. Thanks for this fix.

#9 Updated by Radek Tomiška about 1 month ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Go to top