mojaloop / project

Repo to track product development issues for the Mojaloop project.
Other
23 stars 15 forks source link

To fix : Participant's position balance is changed to incorrect amount when testing with changed ILP packet #3982

Open YminOo opened 3 months ago

YminOo commented 3 months ago

Summary: Participant's position amount balance is changed to incorrect amount when testing with changed ILP packet during POST/transfer call. The transaction is in "Committed" Status, but show error reason as "Transfer rejected by Payee side." At that time, account and balance service also down for a while, cannot check the participant's account in admin UI portal. After the service is up again, the participant's position amount are displayed incorrectly.

Severity: High

Priority: Critical

Expected Behavior To investigate the account and balance of Hub.

Steps to Reproduce

  1. call GET/parties and POST/quotes
  2. call to FSPIOP transfer call with changed ILP packet
  3. check the Participant's account from admin UI portal
  4. check the position amount of participant's (both payer and payee side) after account and balance service up again

Specifications

Notes:

YminOo commented 3 months ago

changed ILP packet means, we can use the old ILP packet or any other ILP packet of different transferId Sample postman api http://fspiop-api-svc.dev.sanbox.wynepayhubsanbox-pre.com/transfers

{ "transferId": "868ec4c5-3b93-4deb-a90e-dae89d5b8592", "payerFsp": "demowalletLcc", "payeeFsp": "demomfiLcc", "amount": { "currency": "MXN", "amount": "800" }, "ilpPacket": "AYIDhwAAAAAAARFwHWcuZGVtb21maWxjYy5tc2lzZG4uMDk1MTc0MjE2ggMkZXlKMGNtRnVjMkZqZEdsdmJrbGtJam9pTkdaak0yWmtPR010WmpCbU5TMDBaR1l3TFdJNE1HRXRaRFV3TjJRMFpESmlaalF4SWl3aWNYVnZkR1ZKWkNJNklqUm1Zek5tWkRoakxXWXdaalV0TkdSbU1DMWlPREJoTFdRMU1EZGtOR1F5WW1ZME1TSXNJbkJoZVdWbElqcDdJbkJoY25SNVNXUkpibVp2SWpwN0luQmhjblI1U1dSVWVYQmxJam9pVFZOSlUwUk9JaXdpY0dGeWRIbEpaR1Z1ZEdsbWFXVnlJam9pTURrMU1UYzBNakUySWl3aVpuTndTV1FpT2lKa1pXMXZiV1pwVEdOakluMHNJbTVoYldVaU9pSlphVzV0YVc0Z1QyOGlMQ0p3WlhKemIyNWhiRWx1Wm04aU9uc2lZMjl0Y0d4bGVFNWhiV1VpT25zaVptbHljM1JPWVcxbElqb2lXV2x1YldsdUlpd2liR0Z6ZEU1aGJXVWlPaUpQYnlKOWZTd2ljM1Z3Y0c5eWRHVmtRM1Z5Y21WdVkybGxjeUk2V3lKVlUwUWlMQ0pOVFVzaUxDSkZWVklpWFgwc0luQmhlV1Z5SWpwN0luQmhjblI1U1dSSmJtWnZJanA3SW5CaGNuUjVTV1JVZVhCbElqb2lUVk5KVTBST0lpd2ljR0Z5ZEhsSlpHVnVkR2xtYVdWeUlqb2lNVEl6TURreE1qTTBOVFkzT0RraUxDSm1jM0JKWkNJNkltUmxiVzkzWVd4c1pYUk1ZMk1pZlgwc0ltRnRiM1Z1ZENJNmV5SmpkWEp5Wlc1amVTSTZJazFZVGlJc0ltRnRiM1Z1ZENJNklqY3dNQ0o5TENKMGNtRnVjMkZqZEdsdmJsUjVjR1VpT25zaWMyTmxibUZ5YVc4aU9pSlVVa0ZPVTBaRlVpSXNJbk4xWWxOalpXNWhjbWx2SWpvaVVrVk5TVlJVUlU1RFJTSXNJbWx1YVhScFlYUnZjaUk2SWxCQldVVlNJaXdpYVc1cGRHbGhkRzl5Vkhsd1pTSTZJa0pWVTBsT1JWTlRJbjE5IKcRKvlu47Dc8yOoziPCL1JS8Er9VJgN3rpSWZg7GJKWGDIwMjQtMDYtMjFUMDk6MDI6NDguNDgxWg","condition":"pxEq-W7jsNzzI6jOI8IvUlLwSv1UmA3eulJZmDsYkpY", "expiration": "2023-02-28T13:27:53.536Z", "extensionList": { "extension": [ { "key": "occae", "value": "ut do consequat id" } ] } }

YminOo commented 3 months ago
Screenshot 2024-06-25 at 15.19.14.png
Monicaminzy commented 1 month ago

As per testing result, we test with changed ilp packet and participant's position amount are displayed correctly as below file. QA Passed
Testing 3982.docx