Summary: | better handling of filenames if download name changes due to redirections | ||
---|---|---|---|
Product: | [Applications] kget | Reporter: | Volkmar Wörner <volkmar.woerner+KDE> |
Component: | general | Assignee: | KGet authors <kget> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jorti, mat69, metrobotte, reuben_p, squan, s_chriscollins |
Priority: | NOR | ||
Version: | 2.3.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Fixes the redirection |
Description
Volkmar Wörner
2009-01-09 14:53:28 UTC
*** Bug 181771 has been marked as a duplicate of this bug. *** URL handling when downloading like described in Bug 181771 is still broken in kget 4.2.88 (KDE 4.3-beta2) although the behaviour changed a little bit: If a download is initiated I now get a Popup stating "Ungültige Adresse, das Protokoll fehlt" (Invalid address, missing protocol). *** Bug 209333 has been marked as a duplicate of this bug. *** I think what we might do is automatically rename files on redirections if the follow these conditions: a) only one url for the transfer b) not written to the file yet or resumeable c) not named onself initially This report was last reported for version 2.3.2. Is this still valid for version 2.8.0 or later? the behaviour has not changed since 2.3.2, it still happens with 2.8.0 (at least on Windows) Created attachment 72366 [details]
Fixes the redirection
Please test this patch if you have the chance, it should fix it :) I'm not sure if this should go to 4.9 or later 4.10...
I can confirm that this patch does indeed work :) Whoops, forgot to specify: I tested the patch using KDE 4.8.4 sources in Kubuntu 12.04 64-bit. *** Bug 295717 has been marked as a duplicate of this bug. *** SVN commit 1312138 by lappelhans: Handle url redirections correctly. M +8 -0 core/datasourcefactory.cpp M +2 -0 core/datasourcefactory.h M +5 -0 core/transferdatasource.h M +9 -0 transfer-plugins/multisegmentkio/multisegkiodatasource.cpp M +2 -0 transfer-plugins/multisegmentkio/multisegkiodatasource.h M +7 -0 transfer-plugins/multisegmentkio/segment.cpp M +3 -0 transfer-plugins/multisegmentkio/segment.h M +22 -0 transfer-plugins/multisegmentkio/transfermultisegkio.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1312138 |