View Issue Details

IDProjectCategoryView StatusLast Update
0011450Talerwallet-corepublic2026-05-29 15:15
ReporterFlorian Dold Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Target Version1.6 
Summary0011450: wallet-core handles expiration of proposed v1 contracts with choices badly
DescriptionSteps:
* Scan payment QR code on https://shop.test.taler.net/
* Wait until payment deadline expires
* Scan again
* => wallet throws exception about choiceIndex instead of reporting expired transaction

The problem seems to be that we treat expired payments as already confirmed and try to repurchase.

```
    case PurchaseStatus.Expired:
      return handleConfirmed();
```
Additional Information�"id":18 preparePayForUri{"talerPayUri":"taler:\/\/pay\/backend.test.taler.net\/instances\/blog\/2026.148-00WEGX4D3NTBM\/177eb8b5-fcc3-42b5-87d6-672ab7be658f?c=2ATDFK89BCGBPW3KK203H1MWJ4"}
pay-merchant.ts Found old proposal (status=Expired) for order 2026.148-00WEGX4D3NTBM at https://backend.test.taler.net/instances/blog/
pay-merchant.ts waiting for txn:payment:J8KE1PE3VK2KAF39CAR91H9MKP6HMK0V8P92NWP1ZQA13R9HN8B0 to be downloaded
codec.ts Extra property valid_at for TalerMerchantApi.ContractOutputToken at (TalerMerchantApi.ContractOutputToken)
codec.ts Extra property valid_at for TalerMerchantApi.ContractOutputToken at (TalerMerchantApi.ContractOutputToken)
Possibly unhandled promise rejection: Error: choice index not specified for contract v1
    at handleConfirmed (<compiled_js>:56347)
    at checkPaymentByProposalId (<compiled_js>:56408)

wallet.ts finished wallet core request preparePayForUri with error: {
  "code": 7001,
  "when": {
    "t_ms": 1780000801244
  },
  "hint": "unexpected exception (message: choice index not specified for contract v1)",
  "stack": " at handleConfirmed (<compiled_js>:56347)\n at checkPaymentByProposalId (<compiled_js>:56408)\n"
}
[8] 22:40:01.244 � WalletCore.swift:428 WalletCore#1 handleMessage(message:) "id":18 {"type":"error","operation":"preparePayForUri","id":18,"error":{"code":7001,"when":{"t_ms":1780000801244},"hint":"unexpected exception (message: choice index not specified for contract v1)","stack":" at handleConfirmed (<compiled_js>:56347)\n at checkPaymentByProposalId (<compiled_js>:56408)\n"}}
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2026-05-29 15:15 Florian Dold New Issue