Review Request: Patch to retain SSL meta-data on redirection of a KIO::Job
Andreas Hartmetz
ahartmetz at gmail.com
Thu Mar 25 03:59:19 GMT 2010
> On 2010-03-24 19:06:06, Andreas Hartmetz wrote:
> > It might make more sense to retain the SSL metadata in KIO::Job and resend it if necessary. Is there any reason against doing that?
> > Or possibly new metadata has to be sent from the ioslave because the SSL metadata is related to the exact hostname...
>
> Dawit Alemayehu wrote:
> Indeed this can be done at the KIO::Job level. Infact, the SSL meta-data gets lost because it gets cleared on redirection! So the fix needed to be done there in order to insure non KPart based applications will also benefit from it ; so I have moved the patch to KIO::Job now. Thanks for the input.
I might very well have broken this some time ago because I didn't understand what some undocumented code did :/
- Andreas
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/3364/#review4667
-----------------------------------------------------------
On 2010-03-25 03:43:41, Dawit Alemayehu wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/3364/
> -----------------------------------------------------------
>
> (Updated 2010-03-25 03:43:41)
>
>
> Review request for kdelibs.
>
>
> Summary
> -------
>
> Currently if a KPart based application such as Konqueror calls KParts::BrowserRun::scanFile to determine the mime-type of a requested resource and the resulting KIO job ends up doing a redirection, the SSL related meta-data information will be completely lost. This causes problems like the one mentioned in comment #14 of bug report 154060. This patch addresses this problem by retaining the SSL related meta-data whenever a job is redirected.
>
> NOTE: this patch is NOT the complete fix for the 154060! It is only a partial fix as it pertains to the KPart's library. For a complete fix 154060, the KParts themselves have to be updated to catch all SSL related meta-data whenever a container application calls their openUrl(...) function. For details, see the implementation of kwebkitpart's openUrl.
>
>
> This addresses bug 154060.
> https://bugs.kde.org/show_bug.cgi?id=154060
>
>
> Diffs
> -----
>
> /trunk/KDE/kdelibs/kio/kio/job.cpp 1106350
>
> Diff: http://reviewboard.kde.org/r/3364/diff
>
>
> Testing
> -------
>
> Used the link in comment #14 of bug 154060 to test the fix. It works correctly in Konqueror + kwebkitpart with the fix.
>
>
> Thanks,
>
> Dawit
>
>
More information about the kde-core-devel
mailing list