Closed benmoeARZ closed 5 years ago
@benmoeARZ Thank you for the feedback. This bug will be fixed in upcoming version of xs2a planned for 19th of July.
Fixed in xs2a v.2.10 and v.3.8
@benmoeARZ please check the behaviour in new releases and comment/close ticket
Place where bug appeared
de.adorsys.psd2.consent.service.psu.CmsPsuPisServiceInternal.buildCmsPaymentResponse
de.adorsys.psd2.consent.service.psu.CmsPsuPisServiceInternal.buildCmsPaymentResponseForCancellation
Current behavior
/psu-api/v1/payment/redirect/{redirect-id}
or/psu-api/v1/payment/cancellation/redirect/{redirect-id}
is executed with a common payment (pain-payment). Then the mapping fails with IndexOutOfBoundsException inde.adorsys.psd2.consent.service.mapper.CmsPsuPisMapper.mapToCmsPayment
becauseCmsPsuPisServiceInternal
calls the mapper with an empty listExpected behavior
Steps to reproduce
/psu-api/v1/payment/redirect/{redirect-id}
or/psu-api/v1/payment/cancellation/redirect/{redirect-id}
with generated redirect-idSCA approach
XS2A version(s):