Bug 10

Title: Knab MT940 file can not be parsed
Type: crash Severity: normal
Components: Versions:
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: ced Nosy List: ced, roundup-bot,
Priority: normal Keywords: patch

Created on 2018-08-22 12:16 by, last changed 2019-12-16 14:13 by roundup-bot.

File name Uploaded Description Edit Remove
Knab example.txt, 2018-08-22 12:16
0001-fix-importing-of-knab-files.patch, 2018-08-22 12:28
msg10 (view) Author: [hidden] ( Date: 2018-08-22 12:16
The MT940 from Knab can not be parsed  by the library. Their 
format is a bit different than others, 
 - they add a \ at the end of each line and which breaks 
parsing of amounts for :60F
 - the end_balance is not always added for each entry, some 
have only the start balance. The :62F: is missing 

Below I added an example file from one of our customers with 
the personal information altered.
msg11 (view) Author: [hidden] ( Date: 2018-08-22 12:28
This is a patch that solves the problems for the example I 
had from our customers. Also it does not seem to break 
anything else.

If you could make a new release to incorporate this would be 
very useful. 

msg12 (view) Author: [hidden] (ced) Date: 2018-09-29 21:10
I found this document[1] which shows that start and closing
balances are optional.
So here is review369860043 which make it not failing on
missing optional values.

For the strip of trailing '\', I think it is an error of
file format decoding. From file1, it seems the file is
embedded into another format and I guess the trailing '\'
are part of this format.

msg13 (view) Author: [hidden] (ced) Date: 2018-09-29 21:10
Here is the link to the review:
msg21 (view) Author: [hidden] (roundup-bot) Date: 2019-12-16 14:13
New changeset d14f6f06f270 by C├ędric Krier in branch 'default':
Do not fail on optional balances
Date User Action Args
2019-12-16 14:13:42roundup-botsetstatus: open -> closed
nosy: + roundup-bot
messages: + msg21
2018-09-29 21:10:51cedsetmessages: + msg13
2018-09-29 21:10:01cedsetstatus: open
severity: major -> normal
nosy: + ced
messages: + msg12
priority: high -> normal
assignee: ced
keywords: + patch
2018-08-22 12:28:01vlad.lep@gmail.comsetfiles: + 0001-fix-importing-of-knab-files.patch
messages: + msg11
2018-08-22 12:16:22vlad.lep@gmail.comcreate