View Issue Details

IDProjectCategoryView StatusLast Update
0009219Talermerchant backendpublic2024-12-13 18:15
ReporterFlorian Dold Assigned ToChristian Grothoff Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.14Fixed in Version0.14 
Summary0009219: merchant's GET /orders/{order_id} long-poller does not wake up with repurchase
DescriptionWhen already_paid_order_id becomes available, the long-poller does not wake up.

While this might be according to the spec, it breaks when re-purchasing an article in a new browser session (*with* a new order ID).

Steps To Reproduce$ taler-harness run-integrationtests repurchase

Expected: test terminates on time
Actual: test times out
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2024-09-30 18:10

manager   ~0023411

To clarify:
POSTed and paid Order #1
Then created order #2 with new session X.
Someone is now long-polling on order #2.
Wallet detected repurchase, used /paid API on order #1 to re-target it to session X.
Long-poller on order #2 does not notice.

Christian Grothoff

2024-09-30 18:13

manager   ~0023412

TALER_DBEVENT_MERCHANT_SESSION_CAPTURED is used by /paid to wake-up long-pollers. The GET *private* orders endpoint already listens for it, but the non-private orders endpoint does not!

Christian Grothoff

2024-09-30 19:20

manager   ~0023413

Fixed in c67c2b1d..27f71ff3, test now passes.

Issue History

Date ModifiedUsernameFieldChange
2024-09-23 21:07Florian DoldNew Issue
2024-09-23 21:07Florian DoldStatusnew => assigned
2024-09-23 21:07Florian DoldAssigned To => Christian Grothoff
2024-09-30 18:10Christian GrothoffNote Added: 0023411
2024-09-30 18:13Christian GrothoffNote Added: 0023412
2024-09-30 19:20Christian GrothoffNote Added: 0023413
2024-09-30 19:20Christian GrothoffStatusassigned => informing
2024-09-30 19:20Christian GrothoffResolutionopen => fixed
2024-09-30 19:20Christian GrothoffFixed in Version => 0.14
2024-09-30 19:21Christian GrothoffProduct Version => git (master)
2024-09-30 19:21Christian GrothoffTarget Version1.0 => 0.14
2024-12-13 18:15Christian GrothoffStatusinforming => closed
2025-03-22 13:09Christian GrothoffCategorymechant backend => merchant backend