Review Request 123443: Make it possible to call a put job from an IODevice

Emmanuel Pescosta emmanuelpescosta099 at gmail.com
Wed Apr 22 07:00:53 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123443/#review79325
-----------------------------------------------------------



src/widgets/accessmanager.cpp (line 255)
<https://git.reviewboard.kde.org/r/123443/#comment54156>

    IMO you should always verify if the data is readable, because not all lib users are trustworthy (assert isn't meant for input validation of untrustworthy callers - public api)


- Emmanuel Pescosta


On April 22, 2015, 1:46 a.m., Aleix Pol Gonzalez wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123443/
> -----------------------------------------------------------
> 
> (Updated April 22, 2015, 1:46 a.m.)
> 
> 
> Review request for KDE Frameworks.
> 
> 
> Repository: kio
> 
> 
> Description
> -------
> 
> Also adopts it when using KIO::AccessManager::put. Otherwise it was doing a ::readAll and then passed the QByteArray around, which isn't very elegant.
> 
> 
> Diffs
> -----
> 
>   autotests/accessmanagertest.cpp 5e4988f 
>   autotests/jobtest.h ef0ec57 
>   autotests/jobtest.cpp b11e9f9 
>   src/core/storedtransferjob.h d3e1106 
>   src/core/storedtransferjob.cpp 7f81d00 
>   src/widgets/accessmanager.cpp 239281e 
> 
> Diff: https://git.reviewboard.kde.org/r/123443/diff/
> 
> 
> Testing
> -------
> 
> New test for the new method.
> Tests still pass.
> 
> 
> Thanks,
> 
> Aleix Pol Gonzalez
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150422/5108dba4/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list