View Issue Details

IDProjectCategoryView StatusLast Update
0006814Talermerchant backendpublic2024-01-12 13:04
Reportersebasjm Assigned Tosebasjm 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
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.8Fixed in Version0.8 
Summary0006814: looking up for order using date parameter and positive delta returns empty
Descriptionhttps://git.taler.net/merchant.git/tree/src/backend/taler-merchant-httpd_private-get-orders.c#n525
I think it need to be move after delta is parsed and set to -1 if delta is positive.

Example, this are the orders in the db

row: 23
timestamp: 1616507460000
date: 2021-03-23+13:51:00

row: 22
timestamp: 1616504459000
date: 2021-03-23+13:00:59

row:21
timestamp: 1616507464000
date: 2021-03-23+13:00:58


$ curl 'http://localhost:9966/instances/default/private/orders?delta=-1&start=22'

returns row 21

$ curl 'http://localhost:9966/instances/default/private/orders?delta=1&start=22'

returns row 23

$ curl 'http://localhost:9966/instances/default/private/orders?delta=-1&date=2021-03-23+13:00:59'

returns row 21

$ curl 'http://localhost:9966/instances/default/private/orders?delta=1&date=2021-03-23+13:00:59'

empty, expected rows 23

Additional Information$ curl 'http://localhost:9966/instances/default/private/orders?delta=-3&date=2021-03-23+13:51:04' | jq .
{
  "orders": [
    {
      "order_id": "2021.082-0009M5F0ZZ60M",
      "row_id": 23,
      "timestamp": {
        "t_ms": 1616507460000
      },
      "amount": "COL:13",
      "summary": "some summary with a random number 14",
      "refundable": false,
      "paid": false
    },
    {
      "order_id": "2021.082-01E7CE0E5RXHR",
      "row_id": 22,
      "timestamp": {
        "t_ms": 1616504459000
      },
      "amount": "COL:18",
      "summary": "some summary with a random number 16",
      "refundable": false,
      "paid": false
    },
    {
      "order_id": "2021.082-0087068X0YW8R",
      "row_id": 21,
      "timestamp": {
        "t_ms": 1616504458000
      },
      "amount": "COL:2",
      "summary": "some summary with a random number 4",
      "refundable": false,
      "paid": false
    }
  ]
}
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

sebasjm

2021-03-24 14:55

developer   ~0017641

fixed in e2b2e608..8d25278c

Issue History

Date ModifiedUsernameFieldChange
2021-03-23 20:18sebasjmNew Issue
2021-03-23 20:18sebasjmStatusnew => assigned
2021-03-23 20:18sebasjmAssigned To => Christian Grothoff
2021-03-24 14:55sebasjmStatusassigned => informing
2021-03-24 14:55sebasjmResolutionopen => fixed
2021-03-24 14:55sebasjmFixed in Version => git (master)
2021-03-24 14:55sebasjmNote Added: 0017641
2021-03-26 23:46Christian GrothoffAssigned ToChristian Grothoff => sebasjm
2021-03-26 23:46Christian GrothoffFixed in Versiongit (master) => 0.9
2021-03-26 23:46Christian GrothoffTarget Versiongit (master) => 0.9
2021-07-30 11:57Christian GrothoffFixed in Version0.9 => 0.8.1
2021-07-30 11:59Christian GrothoffTarget Version0.9 => 0.8.1
2021-07-30 12:02Christian GrothoffFixed in Version0.8.1 => 0.8
2021-07-30 12:02Christian GrothoffTarget Version0.8.1 => 0.8
2021-08-24 14:23Christian GrothoffStatusinforming => closed
2024-01-12 13:04Christian GrothoffCategorymerchant backend API (C) => mechant backend
2025-03-22 13:09Christian GrothoffCategorymechant backend => merchant backend