View Issue Details

IDProjectCategoryView StatusLast Update
0007301libeufinGeneralpublic2023-02-02 00:25
ReporterChristian Grothoff Assigned ToMS  
PrioritylowSeveritytweakReproducibilityN/A
Status closedResolutionfixed 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Target Version0.9.1 
Summary0007301: 200 OK or 204 No content?
DescriptionSeveral endpoints in the bank access API are specified to return 200 OK (presumably with an empty JSON object for the body).
However, it would likely be better to return 204 No Content and an empty body, as there is nothing to return and we do so elsewhere.

As a first step, the cashier should be adjusted to tolerate the new behavior (200 and 204 are both OK), then we can modify libeufin/fakebank to return 204, and then phase-out 200 support.
TagsNo tags attached.

Activities

grote

2022-08-17 20:47

reporter   ~0019014

It looks like current cashier doesn't care as long as the status code is < 300

Christian Grothoff

2022-08-20 23:09

manager   ~0019021

MS: can you adjust the spec and return 204 with an empty body instead of 200 OK for the endpoints that clearly return 'nothing'?

Christian Grothoff

2023-01-08 10:16

manager   ~0019609

I've now adjusted the spec to include the 204 case.

Christian Grothoff

2023-01-12 18:52

manager   ~0019639

https://docs.taler.net/core/api-wire.html#get-$BASE_URL-history-incoming
https://docs.taler.net/core/api-wire.html#get-$BASE_URL-history-outgoing

MS

2023-01-13 16:31

manager   ~0019660

Those links refer to the Taler Wire Gateway API, but the bug was filed initially for the Access API.

Christian Grothoff

2023-01-14 10:09

manager   ~0019664

I'm not sure it was ever supposed to apply to the 'access' API, likely a misunderstanding about the names of the APIs ;-).

Looking at your diffs, it seems this one is fixed, right?

MS

2023-01-14 10:09

manager   ~0019665

Last edited: 2023-01-14 10:09

Closing here, since the TWG got changed as requested.

To reduce the risk of breakage for this non critical aspect, other APIs can be changed after the release. 0007587 tracks that.

Issue History

Date Modified Username Field Change
2022-08-16 10:38 Christian Grothoff New Issue
2022-08-16 10:38 Christian Grothoff Status new => assigned
2022-08-16 10:38 Christian Grothoff Assigned To => grote
2022-08-16 10:38 Christian Grothoff Priority normal => low
2022-08-17 20:47 grote Note Added: 0019014
2022-08-20 23:08 Christian Grothoff Assigned To grote => MS
2022-08-20 23:09 Christian Grothoff Note Added: 0019021
2022-10-20 11:22 Christian Grothoff Target Version 0.9 =>
2023-01-08 10:16 Christian Grothoff Note Added: 0019609
2023-01-08 10:16 Christian Grothoff Project Taler => libeufin
2023-01-08 10:16 Christian Grothoff Category bank API (C) => General
2023-01-08 11:30 Christian Grothoff Target Version => 0.9.1
2023-01-12 18:52 Christian Grothoff Note Added: 0019639
2023-01-13 16:31 MS Note Added: 0019660
2023-01-14 10:09 Christian Grothoff Note Added: 0019664
2023-01-14 10:09 MS Note Added: 0019665
2023-01-14 10:09 MS Status assigned => resolved
2023-01-14 10:09 MS Resolution open => fixed
2023-01-14 10:09 MS Note Edited: 0019665
2023-02-02 00:25 Christian Grothoff Status resolved => closed