mangopay2-java-sdk icon indicating copy to clipboard operation
mangopay2-java-sdk copied to clipboard

Outdated idempotency source url ID matcher

Open AntoineDuComptoirDesPharmacies opened this issue 6 months ago • 0 comments

Since 26th march 2024, resource IDs have change format. Previously : “4659626451” Now : “po_b_02HMVJH4ZJWX9E5K66KTN9H118”

In IdempotencyApiImpl.java, method instantiateResourceObject guess the resource class according to requested URL pattern matcher. However, the ID regexp have not been updated.

At the moment, the ID pattern matcher is "[0-9a-zA-Z]+" It is not authorizing underscore. Thus, it do not cast the ressource correctly.