Bug 497479

Summary: Problem with AqBanking
Product: [Applications] kmymoney Reporter: elmar.schmitt
Component: onlinebankingAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: NOR    
Version: 5.1.3   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Crash-Report
1.JPG
2.JPG
3.JPG
4.JPG
5.JPG
6.JPG
7.JPG
8.JPG
9.JPG
10.JPG
11.JPG

Description elmar.schmitt 2024-12-14 23:48:11 UTC
Created attachment 176620 [details]
Crash-Report

SUMMARY
AqBanking create User not possible

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 10  64bit
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Thomas Baumgart 2024-12-15 10:29:05 UTC
This crash happens in AqBanking:
>    src/libs/plugins/backends/aqhbci/banking/user.c
>    1850:void AH_User_SetSelectedTanMethod(AB_USER *u, int i)
which is called with u == nullptr in this case causing the assertion in line 1854 to fail.

Did you add a username when selecting the TAN method as part of the process?
Comment 2 elmar.schmitt 2024-12-15 11:27:26 UTC
Created attachment 176632 [details]
1.JPG

Hi Thomas, thanks for the quick reply!
The crash happened while I was trying to create a user, see screenshots.
Unfortunately I have no idea about programming and can't correctly
interpret the error messages that appear.
I'm probably doing something wrong, but I have no idea where the error is.

I would be very grateful for help!
  Elmar Schmitt
Comment 3 elmar.schmitt 2024-12-15 11:27:26 UTC
Created attachment 176633 [details]
2.JPG
Comment 4 elmar.schmitt 2024-12-15 11:27:26 UTC
Created attachment 176634 [details]
3.JPG
Comment 5 elmar.schmitt 2024-12-15 11:27:26 UTC
Created attachment 176635 [details]
4.JPG
Comment 6 elmar.schmitt 2024-12-15 11:27:26 UTC
Created attachment 176636 [details]
5.JPG
Comment 7 elmar.schmitt 2024-12-15 11:27:26 UTC
Created attachment 176637 [details]
6.JPG
Comment 8 elmar.schmitt 2024-12-15 11:27:26 UTC
Created attachment 176638 [details]
7.JPG
Comment 9 elmar.schmitt 2024-12-15 11:27:26 UTC
Created attachment 176639 [details]
8.JPG
Comment 10 elmar.schmitt 2024-12-15 11:27:26 UTC
Created attachment 176640 [details]
9.JPG
Comment 11 elmar.schmitt 2024-12-15 11:27:26 UTC
Created attachment 176641 [details]
10.JPG
Comment 12 elmar.schmitt 2024-12-15 11:27:26 UTC
Created attachment 176642 [details]
11.JPG
Comment 13 Thomas Baumgart 2024-12-15 13:20:07 UTC
Here is a snippet of a recent post on the aqbanking mailing list:

> Lege ich den Account in KMymoney über den AqBanking-Dialog ohne Kunden-ID an, 
> crashed KMymoney mit folgender Meldung.
> kmymoney: user.c:1854: AH_User_SetSelectedTanMethod: Zusicherung »u« nicht 
> erfüllt.
> 
> Das deutet alles darauf hin, dass aqbanking eine Kunden-ID erwartet.

That is exactly your problem and it seems to stem from inside AqBanking (so more an upstream problem). Maybe, you post on the AqBanking mailing list at aqbanking-user@mailman.aqbanking.de (you can do so in German). Please feel free to mention this bug entry in your message.

I spotted some current AqBanking code that results in a call to AH_User_SetSelectedTanMethod with u == nullptr in 
> int _handleActivatedOk(GWEN_DIALOG *dlg, const char *sender)
in file aqbanking/src/libs/plugins/backends/aqhbci/dialogs/dlg_pintan_tanmode.c:235 which could be a cause of the problem, but I am no expert on this.

For now, I close this as upstream problem.