GNOME Bugzilla – Bug 649305
Incorrect filename after downloading an escaped URI
Last modified: 2011-06-10 16:08:55 UTC
When Epiphany downloads escaped URL with acutes the filename of the saved file is incorrect. Steps to reproduce: 1. Write in the location bar the following URL : http://www.opidi.org/modules/Eventos/download.php?fichero=bolet%EDn%20de%20inscrici%F3n.doc&temp=1101-phpA1A.tmp 2. Check the downloaded filename. Actual results: The downloaded filename is : "download.php" Expected results: A file with the filename: "Boletín de inscripción.doc" Does this happen every time? Yes Other information: Other files in the same server but without escaped characters with the same mimetype work correctly, example: http://www.opidi.org/modules/Eventos/download.php?fichero=Modelo%20-%20idea%20de%20proxecto.doc&temp=1101-phpA1B.tmp The problem happened in Epiphany 3.0.1 under Fedora 15 Beta - 64bits
The server is returning Content-Disposition: filename="bolet�n de inscrici�n.doc" ie, raw iso-8859-1. which, sigh, is technically allowed. (No other charset is.) I forget, does epiphany use soup_headers_get_content_disposition() for this, or does it use some webkit stuff?
It's working fine on master, so I guess something was not cherry picked when releasing. Answering Dan, it indeed uses some webkit stuff. Check ResourceResponseSoup.cpp:84. It indeed takes the name from the filename of Content-Disposition.
I still get "download.php" in master, so I don't think this is fixed.
(In reply to comment #3) > I still get "download.php" in master, so I don't think this is fixed. Yes you were right. See https://bugs.webkit.org/show_bug.cgi?id=62454
Closing as fixed as the patch in WebKitGtk+ have just landed.