Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

skjnldsv
Copy link
Member

@skjnldsv skjnldsv commented Nov 12, 2024

Fix #48312
Best with nextcloud-libraries/nextcloud-files#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';
  1. Load the files app
  2. See error
    image

Result

image

@skjnldsv
Copy link
Member Author

/backport to stable30

@skjnldsv
Copy link
Member Author

/backport to stable29

@skjnldsv
Copy link
Member Author

/backport to stable28

@skjnldsv
Copy link
Member Author

/compile rebase

@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 14, 2024
skjnldsv and others added 2 commits November 14, 2024 13:32
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: files.ts:77 RangeError: Invalid time value
4 participants