View Issue Details

IDProjectCategoryView StatusLast Update
0007747Talerexchangepublic2023-09-23 13:09
ReporterFlorian Dold Assigned ToChristian Grothoff 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 
Target Version0.9.3Fixed in Version0.9.3 
Summary0007747: sample exchange ToS HTML is giant
DescriptionFor some reason, the ToS converted to HTML is unacceptable large (>600KB), when it is just simple, plain text.

It is so large, that it doesn't fit into one Android IPC message (with JSON encoding/escaping overhead)
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2023-03-07 12:17

manager   ~0019924

Why does the Android wallet request the HTML version? It is so huge as it packs various JS+CSS to make it render nicely. The Android wallet should be asking for RST or TXT, not HTML!

Florian Dold

2023-03-28 18:20

manager   ~0019985

One issue is that the exchange returns the giant HTML response *by default*, either when no "Accept:" header is specified, or there is no match for the requested content type.

But I currently don't understand why wallet-core is not requesting either "text/plain" or "text/markdown", I'll have to look into this.

Florian Dold

2023-03-29 19:01

manager   ~0019989

Okay, so I've fixed a bug in qtart that caused *duplicate* "Accept: application/json" and "Accept: text/plain" headers to be added, which was clearly wrong.

However, I still think it's bad behavior of the exchange to default to returning HTML when there is no matching ToS for the requested MIME type or no Accept header was given.

Christian Grothoff

2023-03-30 01:11

manager   ~0019991

Well, what do you think should be the default? HTML is usually the default for the Web, but I guess we could default to text/plain as well...

Christian Grothoff

2023-04-08 07:46

manager   ~0020039

cbabddf0..677ac4a5 changes the default to text/plain.

Issue History

Date ModifiedUsernameFieldChange
2023-03-07 12:13Florian DoldNew Issue
2023-03-07 12:13Florian DoldStatusnew => assigned
2023-03-07 12:13Florian DoldAssigned To => Christian Grothoff
2023-03-07 12:17Christian GrothoffNote Added: 0019924
2023-03-07 12:17Christian GrothoffAssigned ToChristian Grothoff => Florian Dold
2023-03-07 12:17Christian GrothoffStatusassigned => feedback
2023-03-28 18:20Florian DoldNote Added: 0019985
2023-03-29 19:01Florian DoldAssigned ToFlorian Dold => Christian Grothoff
2023-03-29 19:01Florian DoldStatusfeedback => assigned
2023-03-29 19:01Florian DoldNote Added: 0019989
2023-03-30 01:11Christian GrothoffNote Added: 0019991
2023-04-08 07:46Christian GrothoffNote Added: 0020039
2023-04-08 07:46Christian GrothoffStatusassigned => informing
2023-04-08 07:46Christian GrothoffResolutionopen => fixed
2023-04-08 07:46Christian GrothoffFixed in Version => 0.9.3
2023-09-23 13:09Christian GrothoffStatusinforming => closed