[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 122372] When saving an image,
From:       Konrad Rzepecki <hannibal () megapolis ! pl>
Date:       2006-06-11 0:41:19
Message-ID: 20060611004119.17730.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=122372         
hannibal megapolis pl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hannibal megapolis pl



------- Additional Comments From hannibal megapolis pl  2006-06-11 02:41 -------
I think this is KIO FileCopyJob problem, at least in kget situation. This class \
constructor take dest param witch probably cannot be change.

There are two ways to fix that.

First, fetch real filename before call FileCopyJob (i.e. do HEAD http request). This \
metchod reqire major changes in all applications causing problems.

The second, write new FileCopyJob2 witch internal make HEAD request and change dest \
filename to this is set in Content-Disposition header. This can be security hole so \
KFileDialog can be called from it and user may accept/or not this new name.

The best way will be integration this two classes in one (i.e. FileCopyIn or \
FileDownload) whitch will be fetch Headers, ask user for local filename and make \
download.

This second metchod is more complex but also more universal and IMHO better.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic