Skip to content

fix: undefined share for preview#4866

Merged
blizzz merged 1 commit into
mainfrom
fix/undefined-share-previews
Jun 26, 2025
Merged

fix: undefined share for preview#4866
blizzz merged 1 commit into
mainfrom
fix/undefined-share-previews

Conversation

@elzody
Copy link
Copy Markdown
Collaborator

@elzody elzody commented Jun 23, 2025

  • Target version: main

Summary

Prevents $share being undefined and causing an error in the logs. If we cannot compute $share for some reason, we simply pass null to the PermissionManager::shouldWatermark() method and it will handle the rest.

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

@elzody elzody requested a review from blizzz June 23, 2025 19:40
@elzody elzody self-assigned this Jun 23, 2025
@elzody elzody added the 3. to review Ready to be reviewed label Jun 23, 2025
@elzody elzody requested a review from juliusknorr as a code owner June 23, 2025 19:40
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Jun 23, 2025
Comment thread lib/Listener/BeforeFetchPreviewListener.php Outdated
@elzody elzody force-pushed the fix/undefined-share-previews branch from f936f1c to b3d697b Compare June 23, 2025 20:56
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
@elzody elzody force-pushed the fix/undefined-share-previews branch from b3d697b to bcfe2c0 Compare June 23, 2025 20:58
@elzody elzody moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Jun 23, 2025
@elzody
Copy link
Copy Markdown
Collaborator Author

elzody commented Jun 23, 2025

/backport to stable31

@elzody
Copy link
Copy Markdown
Collaborator Author

elzody commented Jun 23, 2025

/backport to stable30

@elzody elzody requested a review from blizzz June 23, 2025 21:02
@elzody
Copy link
Copy Markdown
Collaborator Author

elzody commented Jun 23, 2025

The Cypress failures are unrelated. Still haven't had the chance to track down this crypto UUID stuff.

@blizzz blizzz merged commit 4118af8 into main Jun 26, 2025
65 of 68 checks passed
@blizzz blizzz deleted the fix/undefined-share-previews branch June 26, 2025 21:11
@github-project-automation github-project-automation Bot moved this from 👀 In review to ☑️ Done in 📝 Productivity team Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Ready to be reviewed

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants