[Kmymoney-devel] Latest SVN - OFX Import Crash
Thomas Baumgart
thb at net-bembel.de
Sun Aug 8 21:07:58 CEST 2010
Hi,
on Sunday 08 August 2010 19:25:25 Greg Darke wrote:
> Hi all
>
> I managed to confirm this problem by creating a new file containing
> multiple consecutive accounts to be downloaded from the same
> institution. In my case however, there is no crash, just the second
> account at the same institution is not updated, although the data is
> downloaded.
>
> The current logic assumes the following sequence of callbacks for each
> account
>
> slotOfxConnected()
> slotOfxData() 1 or more
> slotOfxFinished()
>
> According to the debug output, the problem is that slotOfxConnected() is
> NOT called on the second and subsequent account -- it is only called
> again when the download URL changes.
>
> Luckily there is copious debug statements in KOfxDirectConnectDlg
>
> Processing of the first account results in the following:
>
> kmymoney(18751)/kdecore (KLibrary) KOfxDirectConnectDlg::setStatus:
> STATUS: "Contacting
> https://ofx.bankofamerica.com/cgi-forte/fortecgi?servicename=ofx_2-3&pagena
> me=ofx..." kmymoney(18751)/kdecore (KLibrary)
> KOfxDirectConnectDlg::setStatus: STATUS: "Connection established,
> retrieving data..."
> kmymoney(18751)/kdecore (KLibrary) KOfxDirectConnectDlg::setDetails:
> DETAILS: "Downloading data to
> /home/skunk/.kde4/tmp-skunk-develop/kmymoneyp18751.tmp..."
> kmymoney(18751)/kdecore (KLibrary) KOfxDirectConnectDlg::setDetails:
> DETAILS: "Got 49 bytes"
> kmymoney(18751)/kdecore (KLibrary) KOfxDirectConnectDlg::setDetails:
> DETAILS: "Got 954 bytes"
> kmymoney(18751)/kdecore (KLibrary) KOfxDirectConnectDlg::setDetails:
> DETAILS: "Got 0 bytes"
> kmymoney(18751)/kdecore (KLibrary) KOfxDirectConnectDlg::setStatus:
> STATUS: "Completed."
> OfxImporterPlugin::storeStatements() with 1 statements called
>
> The second and subsequent account AT THE SAME institution results in the
> following debug output:
>
> kmymoney(18751)/kdecore (KLibrary) KOfxDirectConnectDlg::setStatus:
> STATUS: "Contacting
> https://ofx.bankofamerica.com/cgi-forte/fortecgi?servicename=ofx_2-3&pagena
> me=ofx..." kmymoney(18751)/kdecore (KLibrary)
> KOfxDirectConnectDlg::slotOfxData: void ofxdcon::slotOfxData():: Not
> currently connected!
> QTextStream: No device
> kmymoney(18751)/kdecore (KLibrary) KOfxDirectConnectDlg::setDetails:
> DETAILS: "Got 49 bytes"
> kmymoney(18751)/kdecore (KLibrary) KOfxDirectConnectDlg::slotOfxData:
> void ofxdcon::slotOfxData():: Not currently connected!
> QTextStream: No device
> kmymoney(18751)/kdecore (KLibrary) KOfxDirectConnectDlg::setDetails:
> DETAILS: "Got 961 bytes"
> kmymoney(18751)/kdecore (KLibrary) KOfxDirectConnectDlg::slotOfxData:
> void ofxdcon::slotOfxData():: Not currently connected!
> QTextStream: No device
> kmymoney(18751)/kdecore (KLibrary) KOfxDirectConnectDlg::setDetails:
> DETAILS: "Got 0 bytes"
> kmymoney(18751)/kdecore (KLibrary) KOfxDirectConnectDlg::setStatus:
> STATUS: "Completed."
>
> To me it appears as if there is some optimization going on in KIO
> somewhere where the HTTP connection is being reused if the new job is
> connecting to the same URL?
Hmm, strange. I did setup a test here with two accounts at the same bank. No
problem. The connection gets established twice and I see the second call to
slotOfxConnected. I wonder though, if the server plays a significant role
here.
Can you run the above and trace the TCP traffic using wireshark or tcpdump? In
case you know how to read the information using wireshark, I am interested if
two connections are setup or only a single one. In case you don't, please feel
free to send me the file you traced via private e-mail. It's all SSL encrypted
and could only be read if we have the servers private key. I am pretty sure
that it is in the interest of your bank to keep it private.
I am only interested in the flow of information to analyze what's going on
here.
--
Regards
Thomas Baumgart
GPG-FP: E55E D592 F45F 116B 8429 4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
Linux & Open Source Software - aaah, the sweet smell of 'Free'dom
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 225 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kmymoney-devel/attachments/20100808/ff55a72a/attachment-0001.sig
More information about the KMyMoney-devel
mailing list