View Issue Details

IDProjectCategoryView StatusLast Update
0004103TalerMerchant frontends (Python3)public2024-01-12 14:08
ReporterFlorian Dold Assigned ToFlorian Dold  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version0.0 
Target Version0.0 
Summary0004103: merchant page returns redirect for /pay, but it should return JSON with a fulfillment link
DescriptionThis behaviour doesn't work well when we do the /pay via XMLHttpRequest.

The XHR automatically handles the redirect, there is no way to intercept this and get the Location header.

There is also no portable way to get the final URL, the "responseURL" is not supported by some browsers.
TagsNo tags attached.

Relationships

related to 0003800 closedFlorian Dold Error handling 

Activities

Florian Dold

2015-12-25 01:04

manager   ~0010030

https://xhr.spec.whatwg.org/#the-responseurl-attribute

Do you think it makes sense to rely on this attribute, and have the merchant return 303 so that caching works (because the first request via the XHR/redirect and the second one in the browser will both be GETs).

Christian Grothoff

2015-12-25 10:18

manager   ~0010032

Making caching work is important, and it seems this is a normal part of the spec, so why not?

Florian Dold

2016-01-24 03:35

manager   ~0010095

This issue currently blocks me for 0003800.

Florian Dold

2016-01-24 20:16

manager   ~0010096

Fixed, in conjunction with updating the wallet to parse the response correctly.

Issue History

Date Modified Username Field Change
2015-12-25 00:50 Florian Dold New Issue
2015-12-25 00:50 Florian Dold Status new => assigned
2015-12-25 00:50 Florian Dold Assigned To => Marcello Stanisci
2015-12-25 00:59 Florian Dold Summary merchant page returns redirect for /pay, but it should return JSON with a linl => merchant page returns redirect for /pay, but it should return JSON with a fulfillment link
2015-12-25 01:04 Florian Dold Note Added: 0010030
2015-12-25 10:18 Christian Grothoff Note Added: 0010032
2015-12-25 11:00 Christian Grothoff Product Version => 0.0
2015-12-25 11:00 Christian Grothoff Target Version => 0.0
2016-01-24 03:34 Florian Dold Relationship added related to 0003800
2016-01-24 03:35 Florian Dold Note Added: 0010095
2016-01-24 20:15 Florian Dold Assigned To Marcello Stanisci => Florian Dold
2016-01-24 20:16 Florian Dold Note Added: 0010096
2016-01-24 20:16 Florian Dold Status assigned => resolved
2016-01-24 20:16 Florian Dold Resolution open => fixed
2016-01-24 22:19 Christian Grothoff Status resolved => closed
2016-02-17 03:24 Florian Dold Category merchant frontend (demonstrator) => merchant frontend (donations)
2024-01-12 14:08 Christian Grothoff Category merchant frontend (donations) => Merchant frontends (Python3)