[Kde-pim] Review Request: Fixing data loss on remote KABC address book resources

Allen Winter winter at kde.org
Sat Mar 14 12:52:39 GMT 2009



> On 2009-03-14 05:41:43, Volker Krause wrote:
> > Looks ok to me, no idea about the windows part though.

except that we do want it to work on windows. maybe Tobias will take a closer look.  In any event, I don't see anything wrong with this patch.


- Allen


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/302/#review473
-----------------------------------------------------------


On 2009-03-14 04:58:13, Kevin Krammer wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/302/
> -----------------------------------------------------------
> 
> (Updated 2009-03-14 04:58:13)
> 
> 
> Review request for KDE PIM.
> 
> 
> Summary
> -------
> 
> The KABC Resource plugin "net" currently "destroys" the remote file by copying a zero length file to the target location.
> 
> It seems that QTemporaryFile does some internal buffering and data is not written to the filesystem.
> 
> The question is does this work on Windows at all (and do we care)? IIRC a file cannot be opened more than once so the upload will probably fail at sourceFile.open().
> 
> 
> This addresses bug https://bugzilla.novell.com/show_bug.cgi?id=480957.
>     https://bugs.kde.org/show_bug.cgi?id=https://bugzilla.novell.com/show_bug.cgi?id=480957
> 
> 
> Diffs
> -----
> 
>   /trunk/KDE/kdepimlibs/kabc/plugins/net/resourcenet.cpp 938848 
> 
> Diff: http://reviewboard.kde.org/r/302/diff
> 
> 
> Testing
> -------
> 
> Tested with a sftp URL to another local user account and confirmed to work by the reporter of bug in Novell's tracker.
> 
> QTemporaryFile::close() also works, but then one needs to locally store the filename because after close() QTemporaryFile just returns a null string.
> 
> 
> Thanks,
> 
> Kevin
> 
>

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list