Bug 153905 - fails to handle withspace in path correctly
Summary: fails to handle withspace in path correctly
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdeinit (show other bugs)
Version: 3.5
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-12 13:48 UTC by Richard Hartmann
Modified: 2018-11-05 21:08 UTC (History)
1 user (show)

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 Richard Hartmann 2007-12-12 13:48:06 UTC
Version:            (using KDE KDE 3.5.8)
Installed from:    Debian testing/unstable Packages

Both /pathwithoutspace/foo.{jpg,txt} and /path with space/foo.{jpg,txt} must exist.


 kolourpaint /pathwithoutspace/foo.jpg

works, while

 kolourpaint "/path with space/foo.jpg"
 kolourpaint '/path with space/foo.jpg'

do not work, loading an empty foo.jpg. The KDE4 version is not affected and kolourpaint 3.5.8 in a KDE4 session is not affected, either.

jstubbs on IRC confirmed that his kwrite shows the same issue, whereas my kwrite is not affected.
Comment 1 David Faure 2007-12-18 12:14:37 UTC
On Wednesday 12 December 2007, Richard Hartmann wrote:
>  kolourpaint "/path with space/foo.jpg"
>  kolourpaint '/path with space/foo.jpg'
> do not work, loading an empty foo.jpg. 


Can't see that; kolourpaint '/tmp/path with space/2007-12-18.gif' works fine for me.

KDE: 3.5.8
KolourPaint: 1.4.7_relight

> The KDE4 version is not affected and kolourpaint 3.5.8 in a KDE4 session is not affected, either. 


How could the session matter, if you're launching kolourpaint from the command line?
This report doesn't make sense to me.

> jstubbs on IRC confirmed that his kwrite shows the same issue, whereas my kwrite is not affected.


Even more strange, isn't it? Either there's some detail missing in this report, or there's
some confusion in the testing....
Comment 2 Richard Hartmann 2007-12-18 16:15:45 UTC
> Can't see that; kolourpaint '/tmp/path with space/2007-12-18.gif' works fine for me.

Back when I reported this issue, one person could confirm the bug under KDE 3, another person could not. Even though the two are KDE devs, we were unable to determine what the cause was. One IRC nick was jstubbs and I can find out the other one if need be. If you poke him, he might be able to shed some light onto this.


> How could the session matter, if you're launching kolourpaint from the command line? This report doesn't make sense to me. 

I have been told that this could be an issue with kdeinit, but I am not qualified to venture a guess, myself. I do agree that this sounds strange, though.


> Even more strange, isn't it? Either there's some detail missing in this report, or there's some confusion in the testing....

To the best of my knowledge, nothing is missing. The testing consisted of 'run program X with or without whitespace in target file Y's path', so the issue does exist, even though I can not tell you what might be the cause. If you want me to do/run anything to help pinpoint the cause of this problem, please tell me and I will gladly do so.
Comment 3 David Faure 2007-12-18 17:53:16 UTC
Jason, any input on this? I cannot reproduce this bug, but apparently you could?
Comment 4 Richard Hartmann 2007-12-18 18:18:56 UTC
I am back at the machine showing this problem. kolourpaint is version 1.4.8_relight, on this machine.
Comment 5 Jason Stubbs 2007-12-19 12:16:01 UTC
Cancel my acking. I just tried to reproduce it and couldn't. After going through bash history to find out how I did reproduce it and looking a little bit further, I found that I didn't have permission to access the file I was trying to open - the test file being owned by my kde4 user and 0600.

My lack of access permissions (and sleep) causing this problem might help tracking down the problem for Richard though. ;)
Comment 6 Richard Hartmann 2007-12-19 14:27:18 UTC
I can't promise that I will be able to try again on my own box tonight, but I will do so asap. Up to that time, do you have any suggestions on how to gather additional information when I reproduce this bug?
Comment 7 Jason Stubbs 2007-12-19 15:11:10 UTC
My suggestions would be to try using tab completion if you aren't already and replacing "kolourpaint" with "ls -l" after a failure. Also, is there a chance that the space is not ascii 32 but some other whitespace? What happens if you drag the file from konqueror to the konsole?
Comment 8 Richard Hartmann 2007-12-19 15:16:39 UTC
I am not using tab completion, but I did copy & paste the directory after I ran pwd.

ls -l is a good idea, but I fear nothing will come of it.

As it was pwd output, I don't think it was a non-whitespace nbsp
Comment 9 Andrew Crouthamel 2018-11-02 04:28:33 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Richard Hartmann 2018-11-05 21:08:28 UTC
Can't reproduce any more.