<?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>101486</bug_id>
          
          <creation_ts>2005-03-14 17:06:19 +0000</creation_ts>
          <short_desc>tar/zip/... ioslave cannot extract large files when coping</short_desc>
          <delta_ts>2005-03-18 12:36:14 +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>Gentoo Packages</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>0</everconfirmed>
          <reporter name="Clara Gnos">clara.gnos</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>sven.burmeister</cc>
    
    <cc>vide80</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>323877</commentid>
    <comment_count>0</comment_count>
    <who name="Clara Gnos">clara.gnos</who>
    <bug_when>2005-03-14 17:06:19 +0000</bug_when>
    <thetext>Version:           3.4.0 (rc1) (using KDE KDE 3.4.0)
Installed from:    Gentoo Packages
Compiler:          gcc 3.4.3 CFLAGS=&quot;-march=athlon-xp -O3 -pipe -fomit-frame-pointer&quot;
OS:                Linux

When i try to copy a big file from a tar.bz2/zip/... (zip://.... or tar://... ioslaves in konqueror) i just get a 0 byte file. When I use ark to extract it i will get a big file. I will at a big file (full of zeros) where the problem happens</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323878</commentid>
    <comment_count>1</comment_count>
      <attachid>10099</attachid>
    <who name="Clara Gnos">clara.gnos</who>
    <bug_when>2005-03-14 17:10:45 +0000</bug_when>
    <thetext>Created attachment 10099
small tar.bz2 where the problem appears

Open the the file in konqueror -&gt; right click -&gt; copy. Go to another path -&gt;
right click -&gt; paste. It will probably create an empty file</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323884</commentid>
    <comment_count>2</comment_count>
    <who name="Clara Gnos">clara.gnos</who>
    <bug_when>2005-03-14 17:23:05 +0000</bug_when>
    <thetext>Just tested it with a &quot;total&quot; different system, kubuntu and kde 3.4 rc1. It is the same problem here</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324801</commentid>
    <comment_count>3</comment_count>
    <who name="Pascal Létourneau">pascal.letourneau</who>
    <bug_when>2005-03-17 16:30:08 +0000</bug_when>
    <thetext>CVS commit by pletourn: 

Send the data in small pieces (Connection::sendnow() has a 16MB limit)
BUG:101486


  M +15 -1     tar.cc   1.34.2.1


--- kdebase/kioslave/tar/tar.cc  #1.34:1.34.2.1
@@ -369,7 +369,21 @@ void ArchiveProtocol::get( const KURL &amp; 
     mimeType( result-&gt;mimeType() );
 
-    data( completeData );
+    QByteArray partialData;
+    int offset = 0;
+    const int inc = 0x800000; // 8MB
+
+    while ( offset + inc &lt; archiveFileEntry-&gt;size() ) {
+        partialData.setRawData( completeData.data() + offset, inc );
+        data( partialData );
+        partialData.resetRawData( completeData.data() + offset, inc );
+        processedSize( offset + inc );
+        offset += inc;
+    }
 
+    partialData.setRawData( completeData.data() + offset, archiveFileEntry-&gt;size() - offset );
+    data( partialData );
+    partialData.resetRawData( completeData.data() + offset, archiveFileEntry-&gt;size() - offset );
     processedSize( archiveFileEntry-&gt;size() );
+
     data( QByteArray() );
 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324803</commentid>
    <comment_count>4</comment_count>
    <who name="Pascal Létourneau">pascal.letourneau</who>
    <bug_when>2005-03-17 16:35:47 +0000</bug_when>
    <thetext>*** Bug 100871 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324805</commentid>
    <comment_count>5</comment_count>
    <who name="Pascal Létourneau">pascal.letourneau</who>
    <bug_when>2005-03-17 16:37:14 +0000</bug_when>
    <thetext>*** Bug 93249 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324849</commentid>
    <comment_count>6</comment_count>
    <who name="Davide Ferrari">vide80</who>
    <bug_when>2005-03-17 18:17:49 +0000</bug_when>
    <thetext>I know it&apos;s a little thing but why is my bug which has a minor number marked as duplicate of a larger one? :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325149</commentid>
    <comment_count>7</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2005-03-18 12:36:14 +0000</bug_when>
    <thetext>Because the patch that fixed this one also fixed yours, and the developer probably didn&apos;t know that until he retested.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>10099</attachid>
            <date>2005-03-14 17:10:45 +0000</date>
            <delta_ts>2005-03-14 17:10:45 +0000</delta_ts>
            <desc>small tar.bz2 where the problem appears</desc>
            <filename>zerome.tar.bz2</filename>
            <type>application/x-tbz</type>
            <size>241</size>
            <attacher name="Clara Gnos">clara.gnos</attacher>
            
              <data encoding="base64">QlpoOTFBWSZTWViCK7MFfkV7gOgAAYBAAH+AABBqCp8QAAggAJKIp+lP1R5QAaAeUEVNT1T0j1Ho
R6gDTHrvyruiACqolRRAFVRLzOhe0lS9BQAVVEhoR7iNpVyxxjak9YIsUgYhSpAKUudBSwhXZzWn
u3giefo4hkWUwaJWCKACqon8xQVkmU1kOCeLfAV+OQADAAAAIIAAwgE1GQqAlqQqAlzFBWSZTWQ4
J4t8BX45AAMAAAAggADCATUZCoCWpCoCXMUFZJlNZCcygGABQ0sBAwAAAIAAIIAAwzAUpppEoJsK
JQTxdyRThQkOnps0AA==
</data>

          </attachment>
      

    </bug>

</bugzilla>