Skip to content

fix(LocalPreviewStorage): Use correct regex to detect files in nested directory format#59961

Open
DerDreschner wants to merge 1 commit intomasterfrom
fix/use-correct-regex-for-previews
Open

fix(LocalPreviewStorage): Use correct regex to detect files in nested directory format#59961
DerDreschner wants to merge 1 commit intomasterfrom
fix/use-correct-regex-for-previews

Conversation

@DerDreschner
Copy link
Copy Markdown
Contributor

@DerDreschner DerDreschner commented Apr 28, 2026

Summary

The LocalPreviewStorage didn't detected files in the nested directory format correctly. The regex didn't included the letter f, which can occur in hexadecimal md5 hashes as well. May fix the issue from this comment.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@DerDreschner DerDreschner requested a review from a team as a code owner April 28, 2026 11:06
@DerDreschner DerDreschner added bug 3. to review Waiting for reviews labels Apr 28, 2026
@DerDreschner DerDreschner requested review from Altahrim and ArtificialOwl and removed request for a team April 28, 2026 11:06
@DerDreschner
Copy link
Copy Markdown
Contributor Author

/backport to stable33

Comment thread lib/private/Preview/Storage/LocalPreviewStorage.php Outdated
@DerDreschner DerDreschner force-pushed the fix/use-correct-regex-for-previews branch from 0e7f19b to b6db033 Compare April 28, 2026 12:39
… directory format

Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
@DerDreschner DerDreschner force-pushed the fix/use-correct-regex-for-previews branch from b6db033 to fce8b71 Compare April 29, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Preview Generation Fail - Local Storage

2 participants