View Issue Details

IDProjectCategoryView StatusLast Update
0010291Talermerchant backendpublic2025-08-26 17:47
Reportersebasjm Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Product Version1.1 
Target Version1.1 
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