[Bug 267371] New: Attach file dialog corrupts directory name, then says "The file or folder does not exist."

usnay12345 at isomedia.com usnay12345 at isomedia.com
Tue Mar 1 09:57:22 GMT 2011


https://bugs.kde.org/show_bug.cgi?id=267371

           Summary: Attach file dialog corrupts directory name, then says
                    "The file or folder does not exist."
           Product: kmail
           Version: 1.13.5
          Platform: Debian stable
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: composer
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: usnay12345 at isomedia.com


Version:           1.13.5 (using KDE 4.4.5) 
OS:                Linux

Directories in the root directory whose names are one letter and a colon (:)
are not parsed correctly on Linux.

Attempting to switch to the directory /E:/DMW/JOBS fails.
The Attach dialog displays the path as Root > DMW > JOBS
and a popup "The file or folder E:/DMW/JOBS does not exist." is displayed.

Note that the top of the dialog says "Root" where "E:" was expected, and the
popup says "E:/..." where "/E:/..." was expected (i.e. the leading '/' which I
keyed in has been lost).

Using a symlink or renaming the directory circumvents the problem.

This bug could be in a lower level component, because Konqueror also cannot
display file:///E:/DMW/JOBS or just /E:/DMW/JOBS, but doesn't give as much info
as the Attach dialog does.

This directory path has been working on KDE 2.x and 3.x for many years.  It has
not worked on KDE 4.4.5.  I upgraded from Debian Lenny (KDE 3.5.10) to Debian
Squeeze (KDE 4.4.5) last week, and it hasn't worked since.

My best guess is that code which tries to make KMail (or KDE) portable to
Windows is at fault, by failing to handle the possibility of a Linux directory
with a name similar to a Windows drive.

Reproducible: Didn't try

Steps to Reproduce:
Preparation:
Create the directory /E:/DMW/JOBS and place a file in it.
The directory and file should be owned by the user who will perform the test.
The directory must have permissions 775 and the file 664.

The test:
Create an email.
Press Attach.
Key in directory path /E:/DMW/JOBS/ and press enter.


Actual Results:  
The top of the Attach dialog now says
Root > DMW > JOBS
the list of files is empty
and a popup appears with the message
The file or folder E:/DMW/JOBS does not exist.

Expected Results:  
It should have switched to the specified directory.
The top of the Attach dialog should say:
E: > DMW > JOBS
The list of files in the /E:/DMW/JOBS directory should be displayed,
and the user should be able to select one to attach.

OS: Linux (i686) release 2.6.32-5-686
Compiler: cc

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list