View Issue Details

IDProjectCategoryView StatusLast Update
0010291Talermerchant backendpublic2025-08-31 19:09
Reportersebasjm Assigned ToChristian Grothoff  
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.

Relationships

related to 0010292 resolvedsebasjm missing pagination ok ac tokens 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-08-25 19:25 sebasjm New Issue
2025-08-26 10:53 Christian Grothoff Assigned To => Christian Grothoff
2025-08-26 10:53 Christian Grothoff Status new => assigned
2025-08-26 17:47 sebasjm Relationship added related to 0010292
2025-08-28 07:57 Christian Grothoff Product Version 1.1 => 1.0
2025-08-28 07:57 Christian Grothoff Target Version 1.1 => 1.0 stretch goals
2025-08-28 07:57 Christian Grothoff Status assigned => resolved
2025-08-28 07:57 Christian Grothoff Resolution open => fixed
2025-08-28 07:57 Christian Grothoff Fixed in Version => 1.0 stretch goals
2025-08-31 19:09 Christian Grothoff Status resolved => closed