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

            Bug ID: 371748
           Summary: KUrlCompletion resolves symbolic links before
                    resolving relative paths
           Product: frameworks-kio
           Version: 5.27.0
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: fa...@kde.org
          Reporter: alex.bikado...@kdemail.net
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

Usage case: Krusader is using a KUrlRequester to ask the user for the
destination directory for a file move operation.

Now, if the base directory is a symlink then the completion for relative paths
is always made for the link destination and not the symlink location.

E.g. if "/tmp/bin" is a link to "/bin" and the base directory for the URL
completion is set with
> urlCompletion->setDir("/tmp/bin");
then the completion suggestion when typing ".." is always made for "/" ("/bin",
"/boot", "/etc", ...) but it should show completion for "/tmp".

KUrlRequester->url() returns the unresolved url (e.g "/tmp/bin/..") and it can
later be chosen what to do with it. But this is not possible for the url
completion, so either changing the default behaviour or adding an option to set
this in KUrlRequester or KUrlCompletion is fine.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to