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

[stable25] Only open direct link files if link points to Files app #3905

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Mar 6, 2023

Manual backport of #3870

Until now, we always opened direct link files when a link contained a fileId query parameter. This breaks e.g. links to pages from the Collectives app, which contain fileId parameters as well.

Limit opening direct file link to links that point to the Files app.

Fixes: #3857

@mejo- mejo- added bug Something isn't working 3. to review labels Mar 6, 2023
@mejo- mejo- added this to the Nextcloud 25.0.5 milestone Mar 6, 2023
@mejo- mejo- changed the title Only open direct link files if link points to Files app [stable25] Only open direct link files if link points to Files app Mar 6, 2023
@cypress
Copy link

cypress bot commented Mar 6, 2023

1 flaky tests on run #8926 ↗︎

0 100 0 0 Flakiness 1

Details:

Merge f54c1e8 into 0c033dd...
Project: Text Commit: a5460b072d ℹ️
Status: Passed Duration: 05:42 💡
Started: Mar 6, 2023 9:42 PM Ended: Mar 6, 2023 9:48 PM
Flakiness  cypress/e2e/links.spec.js • 1 flaky test

View Output Video

Test Artifacts
test link marks > link preview > shows a link preview Output Screenshots

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@juliusknorr
Copy link
Member

/compile amend /

Until now, we always opened direct link files when a link contained
a `fileId` query parameter. This breaks e.g. links to pages from the
Collectives app, which contain `fileId` parameters as well.

Limit opening direct file link to links that point to the Files app.

Fixes: #3857

Signed-off-by: Jonas <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
@juliusknorr juliusknorr merged commit 94cc352 into stable25 Mar 6, 2023
@delete-merged-branch delete-merged-branch bot deleted the backport/3870/stable25 branch March 6, 2023 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants