<?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>208418</bug_id>
          
          <creation_ts>2009-09-24 18:34:42 +0000</creation_ts>
          <short_desc>Data loss moving a folder to a folder without enough free space</short_desc>
          <delta_ts>2009-10-05 23:45:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kio</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Debian testing</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="Mancausoft">andreamilazzo</reporter>
          <assigned_to name="David Faure">faure</assigned_to>
          <cc>finex</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>20</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>835138</commentid>
    <comment_count>0</comment_count>
    <who name="Mancausoft">andreamilazzo</who>
    <bug_when>2009-09-24 18:34:42 +0000</bug_when>
    <thetext>Version:            (using KDE 4.3.1)
OS:                Linux
Installed from:    Debian testing/unstable Packages

I Move folder to another one without enough free space. when appears a disk full dialog I press AutoSkip. When finish, the source folder and the unmoved file is deleted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>836091</commentid>
    <comment_count>1</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2009-09-26 21:22:12 +0000</bug_when>
    <thetext>Cannot reproduce this bug using current trunk. Someone could confirm it has been fixed? Now the uncopied files are not deleted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>836808</commentid>
    <comment_count>2</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2009-09-28 11:14:53 +0000</bug_when>
    <thetext>I&apos;m not aware of such a bug.

There was bug 118593 but it was a bit more complicated (and it got fixed for 4.2.1 anyway).

I assume this was a move from file:///... to file:///... ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>836879</commentid>
    <comment_count>3</comment_count>
    <who name="Mancausoft">andreamilazzo</who>
    <bug_when>2009-09-28 14:21:41 +0000</bug_when>
    <thetext>David Faure &lt;faure@kde.org&gt; scrisse:

&gt; There was bug 118593 but it was a bit more complicated (and it got
&gt; fixed for 4.2.1 anyway).
&gt; 
&gt; I assume this was a move from file:///... to file:///... ?

Yes, I move a folder by dolphin or konqueror. If I move a file o more
file  the uncopied files are not deleted, if move a folder yes.


Mancausoft</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>837191</commentid>
    <comment_count>4</comment_count>
    <who name="Mancausoft">andreamilazzo</who>
    <bug_when>2009-09-29 03:35:54 +0000</bug_when>
    <thetext>FiNeX &lt;finex@finex.org&gt; wrote:

&gt; Cannot reproduce this bug using current trunk. Someone could confirm
&gt; it has been fixed? Now the uncopied files are not deleted.

I try now from svn (kde 4.3.69 (KDE 4.4 &gt;= 20090923)) 
revision 1029074 and the bug are present, the uncopied are deleted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>839320</commentid>
    <comment_count>5</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2009-10-03 02:06:36 +0000</bug_when>
    <thetext>Confirmed. The files are skipped during copying, and then deleted. Bad.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>840667</commentid>
    <comment_count>6</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2009-10-05 19:45:10 +0000</bug_when>
    <thetext>SVN commit 1031654 by dfaure:

Repair regression introduced by the optimization &quot;recursive deletion in kio_file&quot;.
We should only recurse when asked to (KIO::del()), not when called by KIO::rmdir(),
which -has- to fail if the dir is not empty (like it did before).

Otherwise, after moving a directory failed mid-way due to disk full, we lose the whole
source dir. Whoops.

BUG: 208418


 M  +2 -1      kio/kio/deletejob.cpp  
 M  +2 -2      kio/kio/job.h  
 M  +20 -0     kio/tests/jobtest.cpp  
 M  +2 -0      kio/tests/jobtest.h  
 M  +4 -2      kioslave/file/file_unix.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1031654</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>840764</commentid>
    <comment_count>7</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2009-10-05 23:30:36 +0000</bug_when>
    <thetext>SVN commit 1031744 by dfaure:

Make sure to not even try deleting directories where not all the source files could be moved.
This is safer, and necessary with protocols that cannot implement the &quot;rmdir should give an
error if the dir is not empty&quot;.
CCBUG: 208418


 M  +21 -12    copyjob.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1031744</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>840771</commentid>
    <comment_count>8</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2009-10-05 23:45:18 +0000</bug_when>
    <thetext>SVN commit 1031746 by dfaure:

Backport for kde 4.3.3
CCBUG: 208418


 M  +2 -1      kio/kio/deletejob.cpp  
 M  +2 -2      kio/kio/job.h  
 M  +20 -0     kio/tests/jobtest.cpp  
 M  +2 -0      kio/tests/jobtest.h  
 M  +4 -2      kioslave/file/file_unix.cpp  


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

    </bug>

</bugzilla>