Skip to content

Conversation

@artonge
Copy link
Contributor

@artonge artonge commented Nov 5, 2025

Initially was only to remove what seems to be an unnecessary check in NodeDeletedEvent, but CI highlighted some issue with path management.

Previously, the method was happily returning path with trailing /, this is not the case now. I am a bit afraid of side effects.

Fix #53667

@artonge artonge force-pushed the artonge/fix/remove_unecessary_condition branch from 3708dff to 11f8306 Compare November 5, 2025 17:24
@artonge artonge self-assigned this Nov 5, 2025
@artonge artonge added bug 3. to review Waiting for reviews php Pull requests that update Php code labels Nov 5, 2025
@artonge artonge added this to the Nextcloud 33 milestone Nov 5, 2025
@artonge artonge marked this pull request as ready for review November 5, 2025 17:29
@artonge artonge requested a review from a team as a code owner November 5, 2025 17:29
@artonge artonge requested review from Altahrim, CarlSchwan, icewind1991 and yemkareems and removed request for a team November 5, 2025 17:29
@artonge artonge force-pushed the artonge/fix/remove_unecessary_condition branch from 0c91361 to e4bb0ba Compare November 6, 2025 09:57
@artonge artonge marked this pull request as draft November 6, 2025 10:43
@artonge artonge added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Nov 6, 2025
@artonge artonge force-pushed the artonge/fix/remove_unecessary_condition branch from e4bb0ba to 120544e Compare November 6, 2025 10:54
@artonge artonge changed the title fix(collaboration): Remove unnecessary check on NodeDeletedEvent fix(View): Normalize path in getAbsolutePath Nov 6, 2025
@artonge artonge force-pushed the artonge/fix/remove_unecessary_condition branch from 120544e to 0909f4d Compare November 7, 2025 09:09
@artonge artonge marked this pull request as ready for review November 7, 2025 10:13
@artonge artonge added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Nov 7, 2025
Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

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

makes sense

Copy link
Member

@icewind1991 icewind1991 left a comment

Choose a reason for hiding this comment

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

I think the behavior change should be fine

@artonge artonge force-pushed the artonge/fix/remove_unecessary_condition branch from 0909f4d to 8729c62 Compare November 25, 2025 18:29
…by a try/catch

Deleted nodes are always non existing, but some of them have a fileInfo.
This ensure that we still run the cleanup but in a safe way.

Signed-off-by: Louis Chmn <[email protected]>
This allow to match files more consistently in HookConnector::getNodeForPath

Signed-off-by: Louis Chmn <[email protected]>
@artonge artonge force-pushed the artonge/fix/remove_unecessary_condition branch from 8729c62 to 73c6b17 Compare November 25, 2025 18:30
@artonge artonge merged commit 6c3b698 into master Nov 25, 2025
220 of 228 checks passed
@artonge artonge deleted the artonge/fix/remove_unecessary_condition branch November 25, 2025 20:55
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 bug php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: File reference cache not cleared when deleting

5 participants