[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-10-05 Thread Isaac Wismer
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #28 from Isaac Wismer  ---
I'll definitely send a note off to my bank about their malformed OFX export,
but knowing Canadian banks, it'll just be ignored...

Thanks for all your hard work on this application, it's great to use!

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-10-05 Thread Thomas Baumgart
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #27 from Thomas Baumgart  ---
I agree, it should be fixed upstream. But really upstream, which is the bank.
Why do we have a specification? I am sick of cleaning up behind those
institutions.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-10-05 Thread Dawid Wróbel
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #26 from Dawid Wróbel  ---
Wouldn’t it be better if this was instead fixed upstream in both aqbanking
and libofx?

On Tue, Oct 5, 2021 at 5:14 PM Thomas Baumgart 
wrote:

> https://bugs.kde.org/show_bug.cgi?id=428156
>
> Thomas Baumgart  changed:
>
>What|Removed |Added
>
> 
>  Status|NEEDSINFO   |RESOLVED
>   Latest Commit||
> https://invent.kde.org/offi
>|
> |ce/kmymoney/commit/bd835cb1
>|
> |cd0dce7e215aab3f6813ff754a4
>||8c596
>  Resolution|WAITINGFORINFO  |FIXED
>Version Fixed In||5.1.3
>
> --- Comment #25 from Thomas Baumgart  ---
> Git commit bd835cb1cd0dce7e215aab3f6813ff754a48c596 by Thomas Baumgart.
> Committed on 05/10/2021 at 15:14.
> Pushed by tbaumgart into branch '5.1'.
>
> Discard empty account information provided by LibOFX
>
> Account information may be inaccurate when the provided OFX data does
> not comply with the OFX specification.
> FIXED-IN: 5.1.3
>
> (cherry picked from commit 791ddcfebd24f842cff1052ae0eba40bb06fcc52)
>
> M  +26   -3kmymoney/plugins/ofx/import/ofximporter.cpp
>
>
> https://invent.kde.org/office/kmymoney/commit/bd835cb1cd0dce7e215aab3f6813ff754a48c596
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-10-05 Thread Thomas Baumgart
https://bugs.kde.org/show_bug.cgi?id=428156

Thomas Baumgart  changed:

   What|Removed |Added

 Status|NEEDSINFO   |RESOLVED
  Latest Commit||https://invent.kde.org/offi
   ||ce/kmymoney/commit/bd835cb1
   ||cd0dce7e215aab3f6813ff754a4
   ||8c596
 Resolution|WAITINGFORINFO  |FIXED
   Version Fixed In||5.1.3

--- Comment #25 from Thomas Baumgart  ---
Git commit bd835cb1cd0dce7e215aab3f6813ff754a48c596 by Thomas Baumgart.
Committed on 05/10/2021 at 15:14.
Pushed by tbaumgart into branch '5.1'.

Discard empty account information provided by LibOFX

Account information may be inaccurate when the provided OFX data does
not comply with the OFX specification.
FIXED-IN: 5.1.3

(cherry picked from commit 791ddcfebd24f842cff1052ae0eba40bb06fcc52)

M  +26   -3kmymoney/plugins/ofx/import/ofximporter.cpp

https://invent.kde.org/office/kmymoney/commit/bd835cb1cd0dce7e215aab3f6813ff754a48c596

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-10-05 Thread Thomas Baumgart
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #24 from Thomas Baumgart  ---
The source of the problem has been detected: the OFX file (created by the bank)
contains invalid OFX structures. In

CAD4525501001994321CREDITLINE

the part

CREDITLINE

is not specified in the OFX spec and the parser rejects all data received.
Removing that element from the OFX file presents correct data and everything is
working.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-10-05 Thread Thomas Baumgart
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #23 from Thomas Baumgart  ---
Git commit 791ddcfebd24f842cff1052ae0eba40bb06fcc52 by Thomas Baumgart.
Committed on 05/10/2021 at 14:55.
Pushed by tbaumgart into branch 'master'.

Discard empty account information provided by LibOFX

Account information may inaccurate when the provided OFX data does not
comply with the OFX specification.

M  +26   -3kmymoney/plugins/ofx/import/ofximporter.cpp

https://invent.kde.org/office/kmymoney/commit/791ddcfebd24f842cff1052ae0eba40bb06fcc52

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-10-04 Thread Isaac Wismer
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #22 from Isaac Wismer  ---
I have libOFX 0.9.15
I will email the outputs of ofxdump.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-10-04 Thread Thomas Baumgart
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #21 from Thomas Baumgart  ---
I looked into this one again today since it is so strange. I located where the
values of accountname="Bank account " and accountnumber="  " are set: it is in
OfxAccountContainer::gen_account_id(), so way inside LibOFX. Here's the code:

STRNCPY(data.account_id, string(data.account_id) + m_bankid + " " +
m_branchid + " " + m_acctid);
STRNCPY(data.account_name, string(data.account_name) + "Bank account " +
m_acctid);

and with m_bankid, m_branchid and m_acctid being empty, the values we see get
generated. Also, account_type must be differing from credit card and investment
account at that point (I suspect, it is also unset).

This now raises the following questions:

- which version of LibOFX do you have installed and is used by KMyMoney?
- can you run the utility ofxdump to see if it provides some more details about
what is happening esp. when comparing your two cc accounts? Check "ofxdump
--help" for info about options.

Note: Regarding the difference between "OFX file import" and "OFX direct
connect": OFX direct connect downloads an OFX file, saves it into a temp file
(and writes info about it into the log file) and then calls the OFX file
importer just like you would do when you have the OFX file. So no difference
there.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-10-01 Thread Isaac Wismer
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #20 from Isaac Wismer  ---
Is there anything else you need from me to try and reproduce it? Or anything I
can do to reset the account number?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-29 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #19 from Bug Janitor Service  ---
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-15 Thread Isaac Wismer
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #18 from Isaac Wismer  ---
I didn't edit the files, so yeah, definitely weird output.
Maybe the problem is in the OFX library? Or maybe my bank is giving me
malformed OFX files?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-15 Thread Jack
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #17 from Jack  ---
ofxlog.txt only gets created when downloading with directconnect, not file
import, so there's no problem there.  

Assuming you did not edit the kmm-statement extract, I'd say the two blanks
value of the accountnumber is the issue, although I don't see how that could be
derived from the ACCTID in the source OFX.  Also, is the KMM Account name
really "Bank account " (with trailing space?)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-15 Thread Isaac Wismer
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #16 from Isaac Wismer  ---
When importing the OFX file it doesn't create an ofxlog.txt (yes, I checked to
make sure my log path was correct and that I had checked "Log OFX
transactions"). But I think I can get the same information by just opening up
the OFX file I downloaded from my bank.

from kmm-statement:


from the actual OFX file:
CAD4525501001994321CREDITLINE

I have not used the other credit card in the past few days, so I unfortunately
can't really import anything right now.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-14 Thread Thomas Baumgart
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #15 from Thomas Baumgart  ---
Detailed information regarding the file format and encoding can be found in the
manual at
https://docs.kde.org/stable5/en/kmymoney/kmymoney/details.formats.html.

Seeing two blanks as the StatementKey value is strange. The StatementKey is
used as a second indicator to identify an account. It is set as part of the
statement import when the account number received from the bank differs from
the one KMyMoney knows about. Since we're talking OFX here, this information
comes straight from libOFX. It is strange though to see two blanks here. Let's
see what we can do about it or if there is a bug somewhere down the line.

@Isaac: Please proceed as follows:

- use the settings/general/support dialog to
  a) turn on "Log imported statements"
  b) turn on "Log OFX transactions"

a) will leave a "kmm-statement- .txt" in the 'logpath'
b) will write the communication with the OFX server to the file "ofxlog.txt" in
the 'logpath'

'logpath' can also be set in the above dialog but must exist. The users home
dir is a good choice.

Delete a possibly existing ofxlog.txt file in the logpath so that we have a
fresh copy.

Then run the import process that fails until the end.

Next I am interested in the value of accountid, accountnumber and type found in
the statement file. You can see those with the following command:

  grep version kmm-statement-

Next I want to know which account number was provided by the bank. You can get
that with the following command

  grep ACCTID ofx-log.txt | od -c -Ax

If you have a tool called hexdump available, please provide the output of the
following command:

  grep ACCTID ofx-log.txt | hexdump -C


Maybe you can repeat the above for a bank account (the one that is working) so
that we can see what the difference is.

Don't forget to turn off logging.

p.s. Taking a look at the screen shot attached, the account number seems empty
(but that could well be two blanks which we can't see).

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-12 Thread Isaac Wismer
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #14 from Isaac Wismer  ---
(In reply to Isaac Wismer from comment #13)
> The correct credit card account has a StatementKey, the account it goes into
> has a StatementKey, but it's just 2 spaces.

Actually, I'm sorry, the account that the import should go into does not have a
statement key, the account that it does go into (but shouldn't) has a
statementkey of just 2 spaces.



-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-12 Thread Isaac Wismer
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #13 from Isaac Wismer  ---
The correct credit card account has a StatementKey, the account it goes into
has a StatementKey, but it's just 2 spaces.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-12 Thread Dawid Wróbel
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #12 from Dawid Wróbel  ---
*extension, obviously :)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-12 Thread Dawid Wróbel
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #11 from Dawid Wróbel  ---
Try changing the description to .zip and decompress it.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-12 Thread Isaac Wismer
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #10 from Isaac Wismer  ---
What is the file type/encoding of the .kmy file? I can't seem to figure out out
to inspect it.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-12 Thread Dawid Wróbel
https://bugs.kde.org/show_bug.cgi?id=428156

Dawid Wróbel  changed:

   What|Removed |Added

   See Also||https://bugs.kde.org/show_b
   ||ug.cgi?id=440844

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-12 Thread Dawid Wróbel
https://bugs.kde.org/show_bug.cgi?id=428156

Dawid Wróbel  changed:

   What|Removed |Added

 CC||m...@dawidwrobel.com

--- Comment #9 from Dawid Wróbel  ---
Have you previously accidentally imported into that account that KMM now insist
on importing to? Can you inspect your .kmy file and see if the accounts in
speech (the one you want to import to and the one KMM imports to) have a
'StatementKey' value assigned?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-12 Thread Isaac Wismer
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #8 from Isaac Wismer  ---
The credit cards are from different banks.

All the details in the account info seems correct.

Unfortunately neither bank offers direct connect, so that's not an option to
test.

I will try setting up a new card in KMyMoney and see what happens.

The really weird thing is that I manually select for it to be imported into the
correct account, but it still ends up importing into the wrong account. I guess
it doesn't respect the manual selection.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-12 Thread Jack
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #7 from Jack  ---
Does the problem happen with both direct-connect and importing downloaded OFX
files?  If the bank offers to download MsMoney or QIF files, that should be
less work for you than using csv, until we figure out the underlying problem.
Are the credit cards from the same or different banks?
On the Edit account dialog, does all the information on all subtabs of the
Online settings tab look correct?
One thing you might try is to unmap and then remap the account for card #2. 
(this is only if you already have the account mapped and use direct-connect)
Another thing to try is to create a new credit card account and try to import
the OFX for card #2 into the new account.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-12 Thread Isaac Wismer
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #6 from Isaac Wismer  ---
As a workaround, I just download the transactions as a CSV and import it that
way, which doesn't have any issues, it just takes a little more work.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-12 Thread Isaac Wismer
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #5 from Isaac Wismer  ---
Also, for a little more info:
Credit card account #1 imports fine. It gives me a dialog, which defaults to
importing into card #1, and then I hit OK and it imports into account #1.
Credit card account #2 doesn't import correctly. It gives me a dialog which
defaults to card #1, so I change it to card #2, but then when I hit OK, the
status dialog shows that it was imported into account #1 (so I think maybe it
just always imports into the default account?).
Unfortunately I only have 2 credit cards that offer OFX export, so I can't test
with anything else.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-12 Thread Isaac Wismer
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #4 from Isaac Wismer  ---
Yes, this still occurs in 5.1.2.
Both accounts are credit cards.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-05 Thread Thomas Baumgart
https://bugs.kde.org/show_bug.cgi?id=428156

Thomas Baumgart  changed:

   What|Removed |Added

 Status|REPORTED|NEEDSINFO
 Resolution|--- |WAITINGFORINFO

--- Comment #3 from Thomas Baumgart  ---
Adjusting state

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2021-09-03 Thread Jack
https://bugs.kde.org/show_bug.cgi?id=428156

--- Comment #2 from Jack  ---
Is this still happening in 5.1.2?  Also, what are the account types, both of
the chosen account and the one which actually gets the transaction?  I do not
have this problem, and I import many accounts by OFX (usually direct connect,
but on occasion by file import.)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmymoney] [Bug 428156] OFX import goes to the wrong account

2020-12-22 Thread Maxime Vincent
https://bugs.kde.org/show_bug.cgi?id=428156

Maxime Vincent  changed:

   What|Removed |Added

 CC||maxime.vi...@gmail.com

--- Comment #1 from Maxime Vincent  ---
I have the exact same issue here. I'm also on Arch Linux, KMyMoney version
5.1.0.

When importing an OFX file generated by `ofxstatement`, KMyMoney asks which
account to import to, and then still goes on to import to the wrong account
(the default, I suspect).

-- 
You are receiving this mail because:
You are watching all bug changes.