View Issue Details

IDProjectCategoryView StatusLast Update
0007073Anastasisbackendpublic2021-12-31 18:27
ReporterFlorian Dold Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product VersionGit master 
Target Version0.3.0Fixed in Version0.3.0 
Summary0007073: policy payment long polling not documented and too high by default
DescriptionAccording to CHECK_PAYMENT_GENERIC_TIMEOUT, making a policy upload with an Anastasis-Payment-Identifier waits for 30 minutes (!!) by default. This doesn't seem like a good default.

Furthermore, it's not documented anywhere that the POST /policy/$acctid request will actually block when a payment identifier is given.
TagsNo tags attached.

Activities

Christian Grothoff

2021-11-06 17:36

manager   ~0018462

What is wrong with 30 minutes? After all, we are waiting for the user to do a full bank payment, which even with instant SEPA can be expected to take several minutes.

Florian Dold

2021-11-07 17:28

manager   ~0018465

In all our other endpoints, long-polling is not the default, so it probably shouldn't be the default here either.

Even if we do long-polling by default, we should not wait for more than 0000035:0000030 seconds, for reasons outlined here: https://datatracker.ietf.org/doc/html/rfc6202#section-5.5

Christian Grothoff

2021-12-31 18:27

manager   ~0018613

Fixed in the code and documented in 33152ae..0919fe8

Issue History

Date Modified Username Field Change
2021-11-05 00:07 Florian Dold New Issue
2021-11-05 00:07 Florian Dold Assigned To => Christian Grothoff
2021-11-05 00:07 Florian Dold Status new => assigned
2021-11-06 17:36 Christian Grothoff Note Added: 0018462
2021-11-06 17:36 Christian Grothoff Assigned To Christian Grothoff => Florian Dold
2021-11-06 17:36 Christian Grothoff Status assigned => feedback
2021-11-07 17:28 Florian Dold Note Added: 0018465
2021-12-31 12:40 Christian Grothoff Assigned To Florian Dold => Christian Grothoff
2021-12-31 12:41 Christian Grothoff Status feedback => assigned
2021-12-31 18:27 Christian Grothoff Status assigned => resolved
2021-12-31 18:27 Christian Grothoff Resolution open => fixed
2021-12-31 18:27 Christian Grothoff Fixed in Version => 0.3.0
2021-12-31 18:27 Christian Grothoff Note Added: 0018613
2021-12-31 18:27 Christian Grothoff Product Version => Git master
2021-12-31 18:27 Christian Grothoff Target Version => 0.3.0