View Issue Details

IDProjectCategoryView StatusLast Update
0008455Talerwallet (Android App)public2024-03-07 20:52
ReporterFlorian Dold Assigned Toavalos  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Target Version0.9.4Fixed in Version0.9.4 
Summary0008455: wallet should reset DB via the "clearDb" instead of manually deleting the database file
DescriptionThe manual reset does not seem to work reliably. Instead, the reset button should use the wallet-core "clearDb" request.
TagsNo tags attached.

Activities

avalos

2024-02-21 15:25

developer   ~0021406

We're using "clearDb," so if it doesn't work reliably, then it must mean another thing.
 https://git.taler.net/taler-android.git/tree/wallet/src/main/java/net/taler/wallet/MainViewModel.kt#n157

What do you mean by "does not seem to work reliably"? Could you describe it a bit further? Is it the UI that doesn't react to the reset, or is it that the wallet is not being reset consistently?

avalos

2024-02-21 15:27

developer   ~0021407

However, now I see that the app is not even waiting for confirmation from wallet-core, and is not even catching errors, but rather simply updating the UI after the clearDb request is performed. I'll check that out, maybe some error going on.

Florian Dold

2024-02-22 18:18

manager   ~0021461

Maybe there is some concurrency issue? You are issuing the request, but I'm not sure if you're waiting it to finish.

So maybe you're invalidating the balances view *before* the reset actually happens.

Did you test the reset functionality with a non-empty wallet yourself?

avalos

2024-02-25 21:32

developer   ~0021505

Should be fixed in 506e74e4aa26c18cc3538f01d9fc588272a3ebe0 (currently in dev/ivan-avalos/master).

Issue History

Date Modified Username Field Change
2024-02-20 20:09 Florian Dold New Issue
2024-02-20 20:09 Florian Dold Status new => assigned
2024-02-20 20:09 Florian Dold Assigned To => avalos
2024-02-21 15:25 avalos Note Added: 0021406
2024-02-21 15:27 avalos Note Added: 0021407
2024-02-22 18:18 Florian Dold Note Added: 0021461
2024-02-25 21:32 avalos Note Added: 0021505
2024-02-27 00:14 avalos Status assigned => resolved
2024-02-27 00:14 avalos Resolution open => fixed
2024-03-07 20:52 Christian Grothoff Fixed in Version => 0.9.4
2024-03-07 20:52 Christian Grothoff Status resolved => closed