adorsys / xs2a

Open Source NextGenPSD2 XS2A Implementation from adorsys.
https://adorsys.com/en/products/
GNU Affero General Public License v3.0
130 stars 62 forks source link

POST on cancellation-authorisations immediately after payment-intiation brings NPE #74

Closed benmoeARZ closed 3 years ago

benmoeARZ commented 3 years ago

Place where bug appeared

Current behavior

Expected behavior

Steps to reproduce

SCA approach

XS2A version(s):

Log files or other additional info

I debbuged till de.adorsys.psd2.consent.service.AuthorisationServiceInternal.createAuthorisation where authorisationParent.getInternalRequestId(authorisationType) returns null in case of cancellation because PisCommonPaymentData.cancellationInternalRequestId is not set at this time.

Maybe this might be a wrong workflow case. i don't really know, but a NPE is never good ;) But actually when the Internal-Request-ID is filled (or in my workaround-case set to empty via aspect) then the request returns a valid response

ViraHavrylenko commented 3 years ago

Hello @benmoeARZ , we'll take a look.

andriimurashkin commented 3 years ago

Fixed in versions 8.4 and 9.3.

FYI @benmoeARZ