SeaDrive 3.0.5 File becomes 0 byte after remove downloaded item

  1. Environment:
    SeaDrive v3.0.5 on MacOS 13.5
    SeaFile Server v10.0.8

  2. Step:
    2.1 Create Encrypted Library
    2.2 Upload files to encrypted library
    2.3 remove downloaded files in Finder
    2.4 try to re-download file, then the file becomes 0 byte, but the file is totally fine in web server
    And this issue only happened in encrypted library.

Hello @crpig_zhu , how do you remove the downloaded files? I think that if you remove the downloaded files, the files should be removed on the server.

Use ć€Œē§»é™¤äø‹č½½é”¹ć€in menu, and I think this only delete file locally.
cap

Hello @crpig_zhu , I tested it locally, and it’s possible to re-download the file in the encrypted library. When you re-download, is there any corresponding error in seadrive.log?

Hello @feiniks
No, there is no error log in seadrive.log, even there is no any log in seadrive.log when I try to re-download.
Maybe I should modify the log level to output verbose log?

Hello @crpig_zhu , did the mtime of the file change when you re-downloaded it? Is it possible to reproduce this issue stably?

Hello @feiniks
Yes, I can reproduce this issue stably.
The point is 怌2.2 Upload files to encrypted library怍should be done in macOS Finder.

Here is the stat -s log of file:

  1. copy file to encrypted library, SeaDrive will automatic upload.

st_dev=16777229 st_ino=4550636 st_mode=0100644 st_nlink=1 st_uid=501 st_gid=20 st_rdev=0 st_size=835 st_atime=1692262470 st_mtime=1692245988 st_ctime=1692262469 st_birthtime=1692245206 st_blksize=4096 st_blocks=8 st_flags=64

  1. Use ć€Œē§»é™¤äø‹č½½é”¹ć€in menu

st_dev=16777229 st_ino=4550636 st_mode=0100644 st_nlink=1 st_uid=501 st_gid=20 st_rdev=0 st_size=835 st_atime=1692262495 st_mtime=1692245988 st_ctime=1692262469 st_birthtime=1692245206 st_blksize=4096 st_blocks=0 st_flags=1073741920

  1. re-download this file

st_dev=16777229 st_ino=4550636 st_mode=0100644 st_nlink=1 st_uid=501 st_gid=20 st_rdev=0 st_size=0 st_atime=1692245579 st_mtime=1692245988 st_ctime=1692262509 st_birthtime=1692245206 st_blksize=4096 st_blocks=0 st_flags=64

You can see:
The st_atime and st_flags changed in step2
The st_size态st_atime态st_ctime态st_flags changed in step3

Hello @crpig_zhu , thanks for your reply, we will fix this issue in the next release.

1 Like

Confirm issue fixed in SeaDrive v3.0.6