View Issue Details

IDProjectCategoryView StatusLast Update
0006430Talermerchant backendpublic2021-09-02 16:23
ReporterMS Assigned Tojonathanbuchanan 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
PriorityhighSeveritymajorReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.8Fixed in Version0.8 
Summary0006430: Responds with 404 for unclaimed orders.
DescriptionThe merchant responds with 404 when a unclaimed (existing!) order is requested
via the GET /private/orders/$ID API. It needs to be fixed to return a object that informs
the requester about the status of the order (as the documentation also suggests).

Merchant test cases got also extended to reproduce this problem.
Steps To ReproduceRun: test_merchant_api
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2020-07-16 17:34

manager   ~0016471

Just to clarify: this implies looking in the 'orders' table and not only in the 'contracts' table. I thought we implemented this, but maybe not. To be verified.

Christian Grothoff

2020-07-16 17:35

manager   ~0016472

On my list, but Jonathan: if you get to it first, also great ;-).

jonathanbuchanan

2020-07-16 20:23

reporter   ~0016480

I'll work on this. Looks pretty easy to fix on the backend side, but the backend adds some fields to the contract_terms json, so the testing library will have to correctly add all those so we can generate the correct hash for when we look up the order.

Christian Grothoff

2020-07-16 20:57

manager   ~0016481

Actually, in this case you MUST NOT generate a contract hash, as for unclaimed orders such a contract hash is meaningless. So the response in this case must be without a contract hash. (That's why we use the term 'order': an order cannot have a contract hash, but a contract has one!). A payment begins with an order, and once claimed we have the contract terms and the hash.

jonathanbuchanan

2020-07-16 21:07

reporter   ~0016484

Oops. I was looking at the wallet code instead of the merchant code.

jonathanbuchanan

2020-07-16 21:09

reporter   ~0016485

fixed in 90adbb3..6c04f55.

jonathanbuchanan

2021-09-02 16:23

reporter   ~0018375

Fix committed to master branch.

Issue History

Date ModifiedUsernameFieldChange
2020-07-16 16:38MSNew Issue
2020-07-16 16:38MSStatusnew => assigned
2020-07-16 16:38MSAssigned To => Marcello Stanisci
2020-07-16 16:38MSAssigned ToMarcello Stanisci => Christian Grothoff
2020-07-16 17:34Christian GrothoffNote Added: 0016471
2020-07-16 17:35Christian GrothoffPrioritynormal => high
2020-07-16 17:35Christian GrothoffSeverityminor => major
2020-07-16 17:35Christian GrothoffProduct Version => git (master)
2020-07-16 17:35Christian GrothoffTarget Version => 0.8
2020-07-16 17:35Christian GrothoffNote Added: 0016472
2020-07-16 20:23jonathanbuchananNote Added: 0016480
2020-07-16 20:57Christian GrothoffNote Added: 0016481
2020-07-16 21:07jonathanbuchananNote Added: 0016484
2020-07-16 21:09jonathanbuchananStatusassigned => informing
2020-07-16 21:09jonathanbuchananResolutionopen => fixed
2020-07-16 21:09jonathanbuchananNote Added: 0016485
2020-07-24 09:56Christian GrothoffFixed in Version => 0.8
2021-08-24 14:23Christian GrothoffStatusinforming => closed
2021-09-02 16:22jonathanbuchanan
2021-09-02 16:23jonathanbuchananNote Added: 0018375
2021-09-02 16:23jonathanbuchananAssigned ToChristian Grothoff => jonathanbuchanan
2025-03-22 13:09Christian GrothoffCategorymechant backend => merchant backend