Skip to content

Conversation

@artonge
Copy link
Contributor

@artonge artonge commented Feb 12, 2025

When accessing a circle share from the public share view, the addOpenGraphHeaders method was erroring in DefaultPublicShareTemplateProvider. This is due to the fact that the $share object for circles share does not contain a token, so the computation of the $shareUrl was failing.

This commit ensures that the share has a token.

Regression introduced by nextcloud/server#45652

When accessing a circle share from the public share view, the `addOpenGraphHeaders` method was erroring in `DefaultPublicShareTemplateProvider`.
This is due to the fact that the `$share` object for circles share does not contain a token, so the computation of the `$shareUrl` was failing.

This commit ensures that the share has a token.

Signed-off-by: Louis Chemineau <[email protected]>
@artonge artonge added this to the Nextcloud 31 milestone Feb 12, 2025
@artonge artonge self-assigned this Feb 12, 2025
@artonge
Copy link
Contributor Author

artonge commented Feb 12, 2025

/backport to stable31

@Altahrim Altahrim mentioned this pull request Feb 12, 2025
4 tasks
@artonge artonge changed the title fix: Set a token to shares retreived from the DB fix: Set a token to shares retrieved from the DB Feb 17, 2025
@artonge artonge requested a review from susnux February 17, 2025 09:44
@ArtificialOwl ArtificialOwl merged commit a61b5ff into master Feb 18, 2025
31 checks passed
@ArtificialOwl ArtificialOwl deleted the artonge/fix/public_share_access branch February 18, 2025 16:30
@ArtificialOwl
Copy link
Member

/backport to stable30

@ArtificialOwl
Copy link
Member

/backport to stable29

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.

4 participants