Skip to content

Conversation

@icewind1991
Copy link
Member

Instead of failing the rest of the request, just log and move on.

Don't let something like nextcloud/activity#2103 stop people from leaving shares without seeing error messages.

@icewind1991 icewind1991 added this to the Nextcloud 32 milestone Aug 14, 2025
@icewind1991 icewind1991 requested a review from a team as a code owner August 14, 2025 09:13
@icewind1991 icewind1991 requested review from ArtificialOwl, CarlSchwan and nfebe and removed request for a team August 14, 2025 09:13
@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Aug 14, 2025
Copy link
Contributor

@come-nc come-nc left a comment

Choose a reason for hiding this comment

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

Why have this specifically for share events?
This is the case for any event, any listener can crash the request.

So I’d say either we have that in the dispatcher or we do not have it at all?

@icewind1991
Copy link
Member Author

"Exceptions from events" seem to be used in at least some places Share20\Manager::verifyPassword seems to use it to do the password verification. (and thus doesn't get the catching treatment here). Not sure about others.

@AndyScherzinger AndyScherzinger merged commit c026c7c into master Aug 19, 2025
207 of 211 checks passed
@AndyScherzinger AndyScherzinger deleted the share-event-catch branch August 19, 2025 05:21
@skjnldsv skjnldsv mentioned this pull request Aug 19, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants