Bug 412577

Summary: Optical Tan Methods not working / no dialogue shown for tan
Product: [Applications] kmymoney Reporter: Marvin Dickhaus <account-kde>
Component: onlinebankingAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: major    
Priority: NOR    
Version: 5.0.7   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Marvin Dickhaus 2019-10-03 20:04:31 UTC
SUMMARY

I compiled the latest aqbanking

Versions:
 AqBanking-CLI: 5.99.38
 Gwenhywfar   : 4.99.20.0
 AqBanking    : 5.99.38.0

and kmymoney 5.0.7. It seems like the optical TAN methods (see https://www.aquamaniac.de/rdm/projects/aqbanking/wiki/ImplementTanMethods) are not implemented?

When I try to connect to my account with comdirect Bank, (tan method photoTan) I'm unable to retrieve any values where a TAN input is required.

aqhbci-tool4 getaccs lists a TAN so it looks like the account is working as far as aqbanking is concerned.


HBCI: 0030 - TAN-Eingabe erforderlich. (S)
Dialog not aborted, assuming PIN is ok
3:2019/10/03 21-54-11:aqhbci(39619):provider_tan.c:  112: ChallengeHHD is [0009696D6167652F706E670E8F89504E470D0A1A0A0000000D49484452000000D6000000D60806000000ADE37C2E00000E564944415478DAED9DB16E145B16451D3874E00F7040E0F07D82030232C8F98527915A2224B54442404EEAD0129FE01489809080D0A10302C21AF
3:2019/10/03 21-54-11:aqhbci(39619):provider_tan.c:  120: Created challenge HHUD is:
3:2019/10/03 21-54-11:aqhbci(39619):String size is 3740
3:2019/10/03 21-54-11:aqhbci(39619):0000: 00 09 69 6d 61 67 65 2f 70 6e 67 0e 8f 89 50 4e ..image/png...PN
3:2019/10/03 21-54-11:aqhbci(39619):0010: 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 G........IHDR...




STEPS TO REPRODUCE
1. Configure aqbanking with a HBCI bank that uses an optical TAN method
2. Try to list accounts
3. 

OBSERVED RESULT
Dialogue aborts unexpected

EXPECTED RESULT
TAN dialogue is displayed with the optical image.

ADDITIONAL INFORMATION
Comment 1 Thomas Baumgart 2019-10-03 22:02:21 UTC
Did you use the 5.0.7 tar-ball? That is too old. Photo-tan was added after 5.0.7 and you need to use the sources from the 5.0 stable branch. No guarantee that it works though (I don't have a photo-tan account).

Change history: https://cgit.kde.org/kmymoney.git/log/?h=5.0
Comment 2 Marvin Dickhaus 2019-10-04 14:28:13 UTC
I previously compiled against the 5.0.7 tarball. I recompiled against the latest master and now the optical TAN challenge works like a charm. I was able to import transactions again.

Keep up the good work. :-)