View Issue Details

IDProjectCategoryView StatusLast Update
0004103Talertaler-merchant-demospublic2024-01-12 13:08
ReporterFlorian Dold Assigned ToFlorian Dold 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
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.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

related to 0003800 closedFlorian Dold Error handling 

Activities

Florian Dold

2015-12-25 00: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 09: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 02:35

manager   ~0010095

This issue currently blocks me for 0003800.

Florian Dold

2016-01-24 19:16

manager   ~0010096

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

Issue History

Date ModifiedUsernameFieldChange
2015-12-24 23:50Florian DoldNew Issue
2015-12-24 23:50Florian DoldStatusnew => assigned
2015-12-24 23:50Florian DoldAssigned To => Marcello Stanisci
2015-12-24 23:59Florian DoldSummarymerchant 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 00:04Florian DoldNote Added: 0010030
2015-12-25 09:18Christian GrothoffNote Added: 0010032
2015-12-25 10:00Christian GrothoffProduct Version => 0.0
2015-12-25 10:00Christian GrothoffTarget Version => 0.0
2016-01-24 02:34Florian DoldRelationship addedrelated to 0003800
2016-01-24 02:35Florian DoldNote Added: 0010095
2016-01-24 19:15Florian DoldAssigned ToMarcello Stanisci => Florian Dold
2016-01-24 19:16Florian DoldNote Added: 0010096
2016-01-24 19:16Florian DoldStatusassigned => informing
2016-01-24 19:16Florian DoldResolutionopen => fixed
2016-01-24 21:19Christian GrothoffStatusinforming => closed
2016-02-17 02:24Florian DoldCategorymerchant frontend (demonstrator) => merchant frontend (donations)
2024-01-12 13:08Christian GrothoffCategorymerchant frontend (donations) => Merchant frontends (Python3)
2026-08-23 14:16Florian DoldCategoryMerchant frontends (Python3) => taler-merchant-demos