View Issue Details

IDProjectCategoryView StatusLast Update
0006003Talerexchangepublic2019-12-23 12:33
ReporterMarcello Stanisci 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 
Product Versiongit (master) 
Target Version0.6Fixed in Version0.6 
Summary0006003: must align bank-lib tests to new Python bank's password management interface
DescriptionSo far, bank-lib tests relied on known-in-advance passwords to login at the Python bank and perform operations like requesting histories or issuing wire transfers.

Since the Python bank now generates random passwords for users that are programmatically created, the bank-lib tests cannot login anymore. And furthermore, the Python bank has only one *interactive* way to let users change their passwords, that makes a programmatic usage from tests more problematic.
Additional InformationLogs showing the "401 Unauthorized" error:

Dec 22 13:03:51-927695 test-bank-api-with-(fake)bank-new-26098 INFO Bank serves at `http://localhost:8081/'
2019-12-22 12:03:52,059 middleware ERROR Error: authentication failed, while serving /history?auth=basic&account_number=1&delta=1&direction=both&cancelled=omit&ordering=ascending
Unauthorized: /history
2019-12-22 12:03:52,060 log WARNING Unauthorized: /history
Dec 22 13:03:52-060245 test-bank-api-with-(fake)bank-new-26098 ERROR Unwanted response code from /history[-range]: 401
Dec 22 13:03:52-060283 test-bank-api-with-(fake)bank-new-26098 ERROR Failed at command `history-0'
22/Dec/2019:12:03:51 +0000 HTTP/1.1 GET /history?auth=basic&account_number=1&delta=1&direction=both&cancelled=omit&ordering=ascending HTTP/1.1 => 401
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2019-12-22 12:10

manager   ~0015206

Oh, this is a big RC issue. Why was this changed? Can we have a way to get the old behavior, maybe with an additional command-line switch (--test-acounts) or something like that?

Christian Grothoff

2019-12-23 12:32

manager   ~0015213

Fixed in Git master by wrapping taler-bank-manage with taler-bank-manage-testing script that sets up the passwords as before -- using psql database hacking. Ugly, but Django doesn't allow non-interactive setting of passwords otherwise.

Issue History

Date ModifiedUsernameFieldChange
2019-12-22 12:04Marcello StanisciNew Issue
2019-12-22 12:04Marcello StanisciStatusnew => assigned
2019-12-22 12:04Marcello StanisciAssigned To => Christian Grothoff
2019-12-22 12:04Marcello StanisciAssigned ToChristian Grothoff =>
2019-12-22 12:09Marcello StanisciAdditional Information Updated
2019-12-22 12:10Christian GrothoffNote Added: 0015206
2019-12-22 12:11Christian GrothoffProduct Version => git (master)
2019-12-22 12:11Christian GrothoffTarget Version => 0.6
2019-12-23 12:32Christian GrothoffAssigned To => Christian Grothoff
2019-12-23 12:32Christian GrothoffStatusassigned => informing
2019-12-23 12:32Christian GrothoffResolutionopen => fixed
2019-12-23 12:32Christian GrothoffFixed in Version => 0.6
2019-12-23 12:32Christian GrothoffNote Added: 0015213
2019-12-23 12:33Christian GrothoffStatusinforming => closed