Skip to content

Refreshing a page with a deleted public link results in an "Unknown Error" #12461

@anon-pradip

Description

@anon-pradip

Describe the bug

When a file is shared via a public link and opened in the browser, it loads correctly. However, if the public link is deleted after the file is opened, refreshing the page results in an "Unknown Error" instead of a more informative message.

Steps to reproduce

1. Create a file `NewFile.txt`
2. Create a public link for file `NewFile.txt`
3. Open the public link and unlock it with previously created password
4. Delete the public link of `NewFile.txt`
5. Refresh the browser window where that public link is open

Expected behavior

When refreshing a page that was opened via a deleted public link, the app should display a user-friendly message such as "This link is no longer available" or "The public link has been deleted."

Actual behavior

The page displays a generic "Unknown Error" message upon refresh, providing no context about the missing or deleted public link.

Setup

ownCloud Web UI 11.3.1
 Infinite Scale 7.1.2+b0ee5ce543e Community

Additional context

Screencast.from.2025-04-10.14-36-11.webm

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions