nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.33k stars 3.97k forks source link

[Bug]: Problems with moving files in batches #45520

Open ncheng89 opened 2 months ago

ncheng89 commented 2 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

When I moved tens of thousands of historical files in batches, I found that the modification time of the historical files would be changed. When I moved folders one by one, it seemed that the modification time of the files would not be changed. image

Steps to reproduce

1.Batch move multiple directories, each with thousands of files 2.Moving to other directories will cause the modification time of the file to become 3.

Expected behavior

When moving files in batches, you should not modify any attributes of the files. It is correct to just move the files to the specified directory. This bug will not be triggered when I move the files one by one, but it will be triggered when I move more directories in batches. will trigger this problem

Installation method

Community Manual installation with Archive

Nextcloud Server version

28

Operating system

RHEL/CentOS

PHP engine version

PHP 8.2

Web server

Nginx

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

ncheng89 commented 2 months ago

image These files were originally historical files in 2022. When I tried to move and archive these files, I discovered this problem. I think this problem should not be triggered and the time attributes of the original files should be maintained.

solracsf commented 2 months ago

What kind of storage are you using?

ncheng89 commented 2 months ago

@solracsf I am using local storage

ncheng89 commented 2 months ago

Can this problem be fixed in the next version? When moving a large number of local storage files, the original file attributes cannot be maintained.