<?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>151851</bug_id>
          
          <creation_ts>2007-11-04 16:49:49 +0000</creation_ts>
          <short_desc>renaming filename in konqueror when broken symlink with new name exists does not give rename/overwrite dialog</short_desc>
          <delta_ts>2009-02-17 18:47:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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>1</everconfirmed>
          <reporter name="Shriramana Sharma">samjnaa</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>faure</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>553497</commentid>
    <comment_count>0</comment_count>
    <who name="Shriramana Sharma">samjnaa</who>
    <bug_when>2007-11-04 16:49:49 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.5.8)
Installed from:    Ubuntu Packages

With two files:
---------------

1. Create two files named foo and goo in a dir.
2. Create a symlink to foo called moo.
3. Delete foo.
4. Using Konqueror, rename goo to moo.
5. moo is overwritten without warning.

Other cases:
------------

With foo as directory and goo as file, behaviour is as with two files.

When foo and goo are both directories, step 4 gives a fatal error message saying: Could not rename file goo.

With foo and file and goo as directory, same.

Summary:
--------

Apparently the behaviour depends on whether goo is a directory or not. Either way, it is not the expected behaviour.

Expected: I should be given the usual warning about overwriting an existing file and given the choice of renaming or overwriting. The renaming should neither be done without warning nor should I be given a dumb fatal error message.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>608154</commentid>
    <comment_count>1</comment_count>
    <who name="Jaime Torres">jtamate</who>
    <bug_when>2008-06-06 16:39:15 +0000</bug_when>
    <thetext>Confirmed in konqueror 4 trunk r813735 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>608184</commentid>
    <comment_count>2</comment_count>
    <who name="Jaime Torres">jtamate</who>
    <bug_when>2008-06-06 17:37:57 +0000</bug_when>
    <thetext>I forgot to say that only the following cases remain:
* foo and goo files
* foo and goo directories</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>716271</commentid>
    <comment_count>3</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2009-02-13 15:31:56 +0000</bug_when>
    <thetext>SVN commit 925561 by dfaure:

Re-testing #151851 (rename file to name of existing symlink) I found that it worked (I do get the overwrite dialog),
but after overwriting the icon wouldn&apos;t be updated correctly. KDirLister was emitting the renaming before the
deletion, which would make kdirmodel lose the new data.

And when writing the unittest for this I discovered another bug: KDirLister didn&apos;t process correctly
the KDirWatch signal emitted when an old file is re-created again.
BUG: 151851


 M  +44 -27    kio/kdirlister.cpp  
 M  +1 -1      kio/kdirlister_p.h  
 M  +49 -0     tests/kdirlistertest.cpp  
 M  +1 -0      tests/kdirlistertest.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=925561
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>717588</commentid>
    <comment_count>4</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2009-02-16 11:25:12 +0000</bug_when>
    <thetext>Ah closed it too early. Overwriting the symlink with a directory still breaks.

Note that the type of &quot;foo&quot; doesn&apos;t matter, the test matrix is
- overwriting a symlink [or a file] with a file
- overwriting a symlink [or a file] with a directory
- and the case of overwriting a directory with a file, which can&apos;t work, but needs to be handled correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>717912</commentid>
    <comment_count>5</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2009-02-17 01:14:15 +0000</bug_when>
    <thetext>SVN commit 927192 by dfaure:

Fix non-working (and/or crashing) overwriting of a file (or symlink) with a directory.
CCBUG: 151851


 M  +10 -11    kio/copyjob.cpp  
 M  +22 -20    kio/kdirlister.cpp  
 M  +17 -2     kio/kdirmodel.cpp  
 M  +38 -0     tests/kdirmodeltest.cpp  
 M  +2 -1      tests/kdirmodeltest.h  
 M  +54 -0     tests/kiotesthelper.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=927192</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>718344</commentid>
    <comment_count>6</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2009-02-17 18:47:42 +0000</bug_when>
    <thetext>SVN commit 927501 by dfaure:

Don&apos;t offer to Overwrite &quot;dir&quot; with &quot;file&quot; when renaming &quot;file&quot; to &quot;dir&quot;, it won&apos;t do it, offer the rename dialog for choosing another name.
BUG: 151851


 M  +11 -3     copyjob.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=927501</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>