Bug 161587 - konqueror "save image as..." fails when html image is coded like src="<spaces>filename<spaces> "
Summary: konqueror "save image as..." fails when html image is coded like src="<spaces...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 3.5
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-04 10:18 UTC by p92
Modified: 2012-06-18 18:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description p92 2008-05-04 10:18:24 UTC
Version:           3.5.9 (using 3.5.9, Kubuntu (hardy) 4:3.5.9-0ubuntu7)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.24-16-generic

- Go to: http://pagesperso-orange.fr/henri.fabre/7Sa4.htm 
- try to save the 2 deployed cube images with "right click" + "save image as..."

expected : image saved

The problem is an html error page is saved under the name of the image.

looking more closely, it appears that this site is coded with images tags like that : <img src=" filename.ext " >
notice the space characters surrounding image filename.

So the uri of the image is wrongly 
http://<hostname>/<basedir> <filename.ext>   
which does not work of course on this site and returns an error page which is saved as the image name by konqueror.

I wonder if it is a bug or the correct behaviour ?

firefox seems to strips spaces around the src="" filename.
Comment 1 Casey Link 2008-06-01 18:46:28 UTC
Testcase:

<IMG SRC=" dude.gif " />

Steps to reproduce:
1. Load test case w/ real image
2. Right click" + "save image as..."
3. Strip the file name to be "picture.gif" (remove the %20s and spaces)
4. Save

Expected Result: Konqueror saves the image
Actual Result: Konqueror throws an error that the file " dude.gif" does not exist.
Comment 2 Myriam Schweingruber 2012-06-18 18:22:44 UTC
Message from the Bugsquad and Konqueror teams:
This bug is closed as outdated, as we do not have the manpower to maintain the KDE3 version anymore.
If you still can reproduce this issue with Konqueror 4.8.4 or later, please open a new report.
Thank you for your understanding.