View Issue Details

IDProjectCategoryView StatusLast Update
0010291Talermerchant backendpublic2025-08-31 17:09
Reportersebasjm 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
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.0 
Target Version1.0 stretch goalsFixed in Version1.0 stretch goals 
Summary0010291: wrong serial interpretation on query for listing tokens
DescriptionAfter this query

$ curl -s 'http://merchant.taler.test/private/tokens?&limit=-6' -H 'Authorization: Bearer secret-token:xxx' | jq '.tokens[].serial'
33
32
28
27
26
19


SPA uses the last serial ID to query the next N tokens, but the result is empty

$ curl -s 'http://merchant.taler.test/private/tokens?offset=26&limit=-6' -H 'Authorization: Bearer secret-token:xxx' | jq '.tokens[].serial'

it seems that offset is use as the index on the result set

$ curl -s 'http://merchant.taler.test/private/tokens?offset=2&limit=-6' -H 'Authorization: Bearer secret-token:xxx' | jq '.tokens[].serial'
28
27
26
19
17
14

Instead it must return the tokens after serial=N

https://docs.taler.net/core/api-merchant.html#get-[-instances-$INSTANCE]-private-tokens

> offset – Optional. Starting serial for pagination.

TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

related to 0010292 closedsebasjm missing pagination ok ac tokens 

Activities

There are no notes attached to this issue.

Issue History

Date ModifiedUsernameFieldChange
2025-08-25 17:25sebasjmNew Issue
2025-08-26 08:53Christian GrothoffAssigned To => Christian Grothoff
2025-08-26 08:53Christian GrothoffStatusnew => assigned
2025-08-26 15:47sebasjmRelationship addedrelated to 0010292
2025-08-28 05:57Christian GrothoffProduct Version1.1 => 1.0
2025-08-28 05:57Christian GrothoffTarget Version1.1 => 1.0 stretch goals
2025-08-28 05:57Christian GrothoffStatusassigned => informing
2025-08-28 05:57Christian GrothoffResolutionopen => fixed
2025-08-28 05:57Christian GrothoffFixed in Version => 1.0 stretch goals
2025-08-31 17:09Christian GrothoffStatusinforming => closed