<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>421483</bug_id>
          
          <creation_ts>2020-05-13 21:44:04 +0000</creation_ts>
          <short_desc>Move / copy / link tries to overwrite destination directory</short_desc>
          <delta_ts>2020-05-13 23:46:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>dolphin</product>
          <component>general</component>
          <version>20.04.0</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>421213</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>eleanorhawk</reporter>
          <assigned_to name="Dolphin Bug Assignee">dolphin-bugs-null</assigned_to>
          <cc>dolphin-bugs-null</cc>
    
    <cc>nate</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1929574</commentid>
    <comment_count>0</comment_count>
    <who name="">eleanorhawk</who>
    <bug_when>2020-05-13 21:44:04 +0000</bug_when>
    <thetext>SUMMARY
Moving, copying, or linking a file or directory results in Dolphin attempting to overwrite the destination directory if the destination directory is a symbolic link, and the link and linked-to directory are on different filesystems.

STEPS TO REPRODUCE
1. With two filesystems that support symbolic linking, create a directory &apos;a&apos; somewhere on one file system.
2. Create a symbolic link &apos;a-link&apos;, pointing to &apos;a&apos; and placed somewhere on the other file system.
3. Open the &apos;a-link&apos; in Dolphin.
4. Using Dolphin, attempt to move, copy, or link a file or folder from anywhere into &apos;a-link&apos;. You may do this by click and drag or by copy and paste.

OBSERVED RESULT
A dialog appears:
&gt; File Already Exists -- Dolphin
&gt; Warning, the destination is more recent.
&gt; Source &lt;the file being moved, copied, or linked&gt;
&gt; Destination &lt;&apos;a-link&apos; or whatever the actual instance is called&gt;
&gt; Rename: [...], [Suggest new name] [Rename] [Overwrite] [Cancel]

Renaming will cause the copied file to be placed (with the new name) in the same directory as &apos;a-link&apos; rather than in &apos;a-link&apos;. Overwriting will cause the copied file to overwrite &apos;a-link&apos;.

EXPECTED RESULT

The file/directory is moved, copied, or linked (respectively) into &apos;a-link&apos;.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux (rolling)
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION

I was able to reproduce this variously between ext4, ntfs, and ecryptfs. Using the linked-to directory (i.e., &apos;a&apos;) in Dolphin results in entirely normal behavior. Similarly, if the link and linked-to directory are on the same filesystem, there is no problem. It also doesn&apos;t seem to matter what file system the file/directory being moved, copied, or linked resides on.

This behavior seems to be new since version 19.12.3

Making the same copy via the system shell works as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929605</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-05-13 23:46:59 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 421213 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>