Skip to content

fix: Set a token to shares retrieved from the DB - #1865

Merged
ArtificialOwl merged 1 commit into
masterfrom
artonge/fix/public_share_access
Feb 18, 2025
Merged

fix: Set a token to shares retrieved from the DB#1865
ArtificialOwl merged 1 commit into
masterfrom
artonge/fix/public_share_access

Conversation

@artonge

@artonge artonge commented Feb 12, 2025

Copy link
Copy Markdown
Contributor

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 <louis@chmn.me>
@artonge artonge added this to the Nextcloud 31 milestone Feb 12, 2025
@artonge artonge self-assigned this Feb 12, 2025
@artonge

artonge commented Feb 12, 2025

Copy link
Copy Markdown
Contributor Author

/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
@ArtificialOwl
ArtificialOwl deleted the artonge/fix/public_share_access branch February 18, 2025 16:30
@ArtificialOwl

Copy link
Copy Markdown
Member

/backport to stable30

@ArtificialOwl

Copy link
Copy Markdown
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.

3 participants