View Issue Details

IDProjectCategoryView StatusLast Update
0010733Talermerchant backoffice SPApublic2025-12-05 15:20
ReporterChristian Grothoff Assigned Tosebasjm  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Versiongit (master) 
Target Version1.5 
Summary0010733: 451 response not handled by spa for template instantiation
DescriptionWhen the SPA receives a 451 from POSTing a template, it fails with a "Reponse invalid" message instead of pointing the user to the KYC requirement.
Steps To ReproduceStart with fresh merchant backend. Run taler-merchant-dbinit, and start ONLY taler-merchant-httpd.
Create an instance.
Create a bank account.
Create a template.
Use the template with the "Test" button.
Set the amount to be > 1.
Kaboom.
Additional InformationHere, the exchange interaction (taler-merchant-kyccheck, taler-merchant-exchangekeyupdate) were deliberately not running, so the operation failed because no exchange was available to handle the amount.

Now, I used an existing DB (didn't fully reset the DB), so maybe some additional steps _could_ be needed to get here, but I think the above is enough and in any case, 451 handling is the issue.
TagsNo tags attached.
Attached Files
error-handling.png (121,664 bytes)   
error-handling.png (121,664 bytes)   

Relationships

related to 0010737 assignedChristian Grothoff 451 of template creation dont returns a PaymentDeniedLegallyResponse without urls 

Activities

sebasjm

2025-12-05 14:58

developer   ~0026787

the merchant spa has a handler for 451, invalid response means something else

sebasjm

2025-12-05 15:05

developer   ~0026788

the problem is that PaymentDeniedLegallyResponse is expecting exchange_base_urls

This can rendered on "developer mode" under personalization.

I will use this issue to improve the message for the normal user I will also move out the developer mode of the personalization profile so you will be able to see this type of message to help debugging without moving out from the profile setting you are testing.
image.png (65,243 bytes)   
image.png (65,243 bytes)   

sebasjm

2025-12-05 15:20

developer   ~0026789

now the codec will convert the missing exchange_base_urls into empty list for compatibility
and this is how it looks
image-2.png (65,312 bytes)   
image-2.png (65,312 bytes)   

Issue History

Date Modified Username Field Change
2025-12-05 11:08 Christian Grothoff New Issue
2025-12-05 11:08 Christian Grothoff Status new => assigned
2025-12-05 11:08 Christian Grothoff Assigned To => sebasjm
2025-12-05 11:08 Christian Grothoff File Added: error-handling.png
2025-12-05 14:58 sebasjm Note Added: 0026787
2025-12-05 15:05 sebasjm Note Added: 0026788
2025-12-05 15:05 sebasjm File Added: image.png
2025-12-05 15:10 sebasjm Relationship added related to 0010737
2025-12-05 15:20 sebasjm Note Added: 0026789
2025-12-05 15:20 sebasjm File Added: image-2.png