Event: Prevent to use original source from parent event (wrong original source is propaged in event and cannot be used)
Original source is propagated from parent event, which can have different content type. Prevent to propagate orginal source in event properties.
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
#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).
Could you provide me a feedback please?