Skip to content

Timestamp in filename issue #2657

@come-nc

Description

@come-nc

I am not completely sure how this affects features, but there is an inconsistency between file URL in UI and database.

The issue is that files_trashbin/Sabre/TrashFile uses getLastModified to build the filename, while in other places we use deleted_time.

I think for legacy backend mtime and deletedtime are the same thing because in apps/files_trashbin/lib/Helper.php:88 the timestamp from filename is put in mtime.

We can either change groupfolders trashbin backend to fake mtime to deleted_time or change files_trashbin to consistently use getDeletedTime instead of getLastModified or getMTime.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions