View Issue Details

IDProjectCategoryView StatusLast Update
0009219Talermechant backendpublic2024-09-30 21:21
ReporterFlorian Dold Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
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.

Activities

Christian Grothoff

2024-09-30 20: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 20: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 21:20

manager   ~0023413

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

Issue History

Date Modified Username Field Change
2024-09-23 23:07 Florian Dold New Issue
2024-09-23 23:07 Florian Dold Status new => assigned
2024-09-23 23:07 Florian Dold Assigned To => Christian Grothoff
2024-09-30 20:10 Christian Grothoff Note Added: 0023411
2024-09-30 20:13 Christian Grothoff Note Added: 0023412
2024-09-30 21:20 Christian Grothoff Note Added: 0023413
2024-09-30 21:20 Christian Grothoff Status assigned => resolved
2024-09-30 21:20 Christian Grothoff Resolution open => fixed
2024-09-30 21:20 Christian Grothoff Fixed in Version => 0.14
2024-09-30 21:21 Christian Grothoff Product Version => git (master)
2024-09-30 21:21 Christian Grothoff Target Version 1.0 => 0.14