Bug 497479 - Problem with AqBanking
Summary: Problem with AqBanking
Status: RESOLVED UPSTREAM
Alias: None
Product: kmymoney
Classification: Applications
Component: onlinebanking (show other bugs)
Version: 5.1.3
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-14 23:48 UTC by elmar.schmitt
Modified: 2024-12-15 13:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Crash-Report (955 bytes, text/plain)
2024-12-14 23:48 UTC, elmar.schmitt
Details
1.JPG (22.27 KB, image/jpeg)
2024-12-15 11:27 UTC, elmar.schmitt
Details
2.JPG (20.72 KB, image/jpeg)
2024-12-15 11:27 UTC, elmar.schmitt
Details
3.JPG (16.61 KB, image/jpeg)
2024-12-15 11:27 UTC, elmar.schmitt
Details
4.JPG (24.47 KB, image/jpeg)
2024-12-15 11:27 UTC, elmar.schmitt
Details
5.JPG (16.23 KB, image/jpeg)
2024-12-15 11:27 UTC, elmar.schmitt
Details
6.JPG (26.19 KB, image/jpeg)
2024-12-15 11:27 UTC, elmar.schmitt
Details
7.JPG (27.80 KB, image/jpeg)
2024-12-15 11:27 UTC, elmar.schmitt
Details
8.JPG (50.33 KB, image/jpeg)
2024-12-15 11:27 UTC, elmar.schmitt
Details
9.JPG (21.27 KB, image/jpeg)
2024-12-15 11:27 UTC, elmar.schmitt
Details
10.JPG (24.44 KB, image/jpeg)
2024-12-15 11:27 UTC, elmar.schmitt
Details
11.JPG (24.51 KB, image/jpeg)
2024-12-15 11:27 UTC, elmar.schmitt
Details

Note You need to log in before you can comment on or make changes to this bug.
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.