<?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>488581</bug_id>
          
          <creation_ts>2024-06-16 12:57:01 +0000</creation_ts>
          <short_desc>SFTP File corruption</short_desc>
          <delta_ts>2024-09-11 11:31:46 +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>unspecified</version>
          <rep_platform>Arch Linux</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Trowe">sergejpopovic22</reporter>
          <assigned_to name="Dolphin Bug Assignee">dolphin-bugs-null</assigned_to>
          <cc>arojas</cc>
    
    <cc>dark0ne</cc>
    
    <cc>dolphin-bugs-null</cc>
    
    <cc>me</cc>
    
    <cc>nate</cc>
          
          <cf_commitlink>https://invent.kde.org/network/kio-extras/-/commit/f0fca6e20d1e71427caff9fc7ab3e8d7041d71ec</cf_commitlink>
          <cf_versionfixedin>24.08.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2328433</commentid>
    <comment_count>0</comment_count>
    <who name="Trowe">sergejpopovic22</who>
    <bug_when>2024-06-16 12:57:01 +0000</bug_when>
    <thetext>STEPS TO REPRODUCE
1. Open Dolphin
2. Connect to SFTP server
3. Edit the file from Dolphin
4. Open it from the host and you will see that it&apos;s corrupt

OBSERVED RESULT
Can&apos;t open the file anymore it&apos;s corrupt.

EXPECTED RESULT
Edited version of the file

SOFTWARE/OS VERSIONS
Arch Linux/Hyprland

ADDITIONAL INFORMATION
I&apos;m using E-Trail FiveM hosting.
When I open and edit the file with Dolphin file is corrupted.
Doing the same thing in Nautilus or some other SFTP client works just fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2348928</commentid>
    <comment_count>1</comment_count>
    <who name="aeneid">dark0ne</who>
    <bug_when>2024-08-27 07:14:31 +0000</bug_when>
    <thetext>I am experiencing similar  issues, when i copy an executable file to the server it gets corrupted, causing segfault when i try to run it.

Works find with other sftp clients.

I am also on Arch (EndeavourOS).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2349085</commentid>
    <comment_count>2</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-08-27 18:06:55 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/network/kio-extras/-/merge_requests/369</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2349511</commentid>
    <comment_count>3</comment_count>
    <who name="Harald Sitter">sitter</who>
    <bug_when>2024-08-28 16:50:54 +0000</bug_when>
    <thetext>Git commit 0b589bd8744457dd5c427cc6b1626221b5e8d250 by Harald Sitter, on behalf of Ser Freeman.
Committed on 28/08/2024 at 16:46.
Pushed by sitter into branch &apos;master&apos;.

sftp: account for maximum request length when using sftp_aio

As stated in the libssh documentation, AIO functions cap the allowed
length per request. Account for that by breaking up into multiple
requests when necessary.

M  +47   -12   sftp/kio_sftp.cpp

https://invent.kde.org/network/kio-extras/-/commit/0b589bd8744457dd5c427cc6b1626221b5e8d250</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2351923</commentid>
    <comment_count>4</comment_count>
    <who name="Antonio Rojas">arojas</who>
    <bug_when>2024-09-06 14:48:19 +0000</bug_when>
    <thetext>Please backport to 24.08, this is a severe data loss issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2353038</commentid>
    <comment_count>5</comment_count>
    <who name="Antonio Rojas">arojas</who>
    <bug_when>2024-09-11 10:52:36 +0000</bug_when>
    <thetext>Git commit f0fca6e20d1e71427caff9fc7ab3e8d7041d71ec by Antonio Rojas.
Committed on 09/09/2024 at 14:14.
Pushed by arojas into branch &apos;release/24.08&apos;.

sftp: account for maximum request length when using sftp_aio

As stated in the libssh documentation, AIO functions cap the allowed
length per request. Account for that by breaking up into multiple
requests when necessary.


(cherry picked from commit 0b589bd8744457dd5c427cc6b1626221b5e8d250)

Co-authored-by: Ser Freeman &lt;serfreeman1337@gmail.com&gt;

M  +47   -12   sftp/kio_sftp.cpp

https://invent.kde.org/network/kio-extras/-/commit/f0fca6e20d1e71427caff9fc7ab3e8d7041d71ec</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>