Review Request 123443: Make it possible to call a put job from an IODevice
Aleix Pol Gonzalez
aleixpol at kde.org
Wed Apr 22 11:51:24 UTC 2015
> On April 22, 2015, 9 a.m., Emmanuel Pescosta wrote:
> > src/widgets/accessmanager.cpp, line 255
> > <https://git.reviewboard.kde.org/r/123443/diff/1/?file=362233#file362233line255>
> >
> > 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)
I can do it, but QNetworkAccessManager doesn't do that, and I'd say it's better to be as similar to QNAM as possible.
- Aleix
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123443/#review79325
-----------------------------------------------------------
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/b77fb8ae/attachment.html>
More information about the Kde-frameworks-devel
mailing list