View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0011689 | Taler | merchant backend | public | 2026-07-27 20:41 | 2026-07-27 20:48 |
| Reporter | sebasjm | Assigned To | Florian Dold | ||
| Priority | normal | Severity | major | Reproducibility | have not tried |
| Status | assigned | Resolution | open | ||
| Summary | 0011689: getting orders with positive limits returns empty | ||||
| Description | $ curl 'https://stage.my.taler-ops.ch/instances/tops/private/orders?paid=NO&limit=1' -H 'Authorization: Bearer secret-token:xxx' { "orders": [] } I expected to return with the latest order inserted. | ||||
| Tags | No tags attached. | ||||
|
|
$ curl 'https://stage.my.taler-ops.ch/instances/tops/private/orders' -H 'Authorization: Bearer secret-token:xxx' { "orders": [ { "order_id": "2026.208-4X51GRG000000", "row_id": 5, "timestamp": { "t_s": 1785173238 }, "amount": "CHF:1", "summary": "we", "refundable": false, "paid": false }, { "order_id": "2026.208-G8C7E60000000", "row_id": 4, "timestamp": { "t_s": 1785169704 }, "amount": "CHF:1", "summary": "we", "refundable": false, "paid": false }, { "order_id": "2026.208-RCMDYB8000000", "row_id": 3, "timestamp": { "t_s": 1785164451 }, "amount": "CHF:1", "refund_amount": "CHF:0", "pending_refund_amount": "CHF:0", "summary": "asdf2", "refundable": false, "paid": true } ] } This is bad, row id 5 is unpaid $ curl 'https://stage.my.taler-ops.ch/instances/tops/private/orders?paid=NO&limit=1&offset=4' -H 'Authorization: Bearer secret-token:xxx' { "orders": [] } Without filter works $ curl 'https://stage.my.taler-ops.ch/instances/tops/private/orders?limit=1&offset=4' -H 'Authorization: Bearer secret-token:xxx' { "orders": [ { "order_id": "2026.208-4X51GRG000000", "row_id": 5, "timestamp": { "t_s": 1785173238 }, "amount": "CHF:1", "summary": "we", "refundable": false, "paid": false } ] } This is ok, row id 3 is paid $ curl 'https://stage.my.taler-ops.ch/instances/tops/private/orders?paid=NO&limit=-1&offset=4' -H 'Authorization: Bearer secret-token:xxx' { "orders": [] } $ curl 'https://stage.my.taler-ops.ch/instances/tops/private/orders?limit=-1&offset=4' -H 'Authorization: Bearer secret-token:xxx' { "orders": [ { "order_id": "2026.208-RCMDYB8000000", "row_id": 3, "timestamp": { "t_s": 1785164451 }, "amount": "CHF:1", "refund_amount": "CHF:0", "pending_refund_amount": "CHF:0", "summary": "asdf2", "refundable": false, "paid": true } ] } $ curl 'https://stage.my.taler-ops.ch/instances/tops/private/orders?limit=1&offset=4' -H 'Authorization: Bearer secret-token:xxx' { "orders": [ { "order_id": "2026.208-4X51GRG000000", "row_id": 5, "timestamp": { "t_s": 1785173238 }, "amount": "CHF:1", "summary": "we", "refundable": false, "paid": false } ] } |