nextcloud / server

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

fix(files): ensure valid mtime and fallback to crtime if defined #49225

Closed skjnldsv closed 4 hours ago

skjnldsv commented 2 days ago

Fix #48312 Best with https://github.com/nextcloud-libraries/nextcloud-files/pull/1115 (but not required)

Steps

  1. Upload a file image.jpg (or whatever)
  2. Ensure mtime is invalid
    UPDATE `filecache` SET `mtime` = '0' WHERE `filecache`.`path` = 'files/image.jpg';
  3. Load the files app
  4. See error image

Result

image

skjnldsv commented 2 days ago

/backport to stable30

skjnldsv commented 2 days ago

/backport to stable29

skjnldsv commented 2 days ago

/backport to stable28

skjnldsv commented 4 hours ago

/compile rebase