Skip to content

fix(files): remove error message when closing the "Open locally" dialog#59647

Merged
DmySyz merged 3 commits intomasterfrom
fix/open-locally-error-message
Apr 15, 2026
Merged

fix(files): remove error message when closing the "Open locally" dialog#59647
DmySyz merged 3 commits intomasterfrom
fix/open-locally-error-message

Conversation

@DmySyz
Copy link
Copy Markdown
Contributor

@DmySyz DmySyz commented Apr 15, 2026

  • Resolves: #

Summary

Catch the exception thrown by the "open locally" dialog when closed within the action itself, so that it does not produce an error message when caught by higher level logic.

Why

The "Open locally" dialog shows up after the action has taken place - offering to retry or open online. It is shown regardless of the first attempts result as it cannot be detected.

However if the file was opened successfully and the user closes the popup - an error message is shown due to the fact that the dialog component throws an error when closed. This is confusing for the users.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@DmySyz DmySyz requested review from a team and skjnldsv as code owners April 15, 2026 12:41
@DmySyz DmySyz requested review from nfebe and sorbaugh and removed request for a team April 15, 2026 12:41
@DmySyz DmySyz force-pushed the fix/open-locally-error-message branch 2 times, most recently from b46a355 to 4628066 Compare April 15, 2026 13:45
Copy link
Copy Markdown
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but didnt test

@szaimen szaimen added bug 3. to review Waiting for reviews labels Apr 15, 2026
@szaimen szaimen added this to the Nextcloud 34 milestone Apr 15, 2026
@szaimen
Copy link
Copy Markdown
Contributor

szaimen commented Apr 15, 2026

/compile rebase

@DmySyz DmySyz force-pushed the fix/open-locally-error-message branch 3 times, most recently from 240f5f4 to b46a355 Compare April 15, 2026 17:02
DmySyz added 2 commits April 15, 2026 17:02
catch the exception thrown by the "open locally" dialog when closed within the action itself, so that it does not produce an error message when caught by higher level logic

Signed-off-by: dsyzov <sizovdmitrij@gmail.com>
Signed-off-by: dsyzov <sizovdmitrij@gmail.com>
@DmySyz DmySyz force-pushed the fix/open-locally-error-message branch from b46a355 to f163f79 Compare April 15, 2026 17:02
@DmySyz
Copy link
Copy Markdown
Contributor Author

DmySyz commented Apr 15, 2026

/compile rebase

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@DmySyz DmySyz merged commit c8e2bb9 into master Apr 15, 2026
166 of 176 checks passed
@DmySyz DmySyz deleted the fix/open-locally-error-message branch April 15, 2026 17:55
@welcome
Copy link
Copy Markdown

welcome Bot commented Apr 15, 2026

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

@DmySyz
Copy link
Copy Markdown
Contributor Author

DmySyz commented Apr 15, 2026

/backport to stable33

@DmySyz
Copy link
Copy Markdown
Contributor Author

DmySyz commented Apr 15, 2026

/backport to stable32

@github-actions
Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

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