Skip to content

Conversation

@blizzz
Copy link
Member

@blizzz blizzz commented Oct 2, 2025

Summary

The node cannot be properly figured out when the affected file stems from within a groupfolder. But we can use the filecache entry instead.

TODO

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

@blizzz blizzz requested a review from juliusknorr as a code owner October 2, 2025 08:43
@blizzz blizzz added bug Something isn't working 3. to review Ready to be reviewed labels Oct 2, 2025
Copy link
Member

@AndyScherzinger AndyScherzinger left a comment

Choose a reason for hiding this comment

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

🐘

@blizzz blizzz force-pushed the fix/noid/deletion-in-groupfolder branch from 58908fd to 950d054 Compare October 2, 2025 09:21
@blizzz blizzz requested a review from icewind1991 October 2, 2025 09:21
Comment on lines 96 to 98
if ($parent === '' || $parent === '.') {
throw new NotFoundException(sprintf('Could not find cache entry for path of %s within storage %s ', $path, $storage->getId()));
}
Copy link
Member

Choose a reason for hiding this comment

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

I don't think is correct, I think that would then fail when trying to move a file to the root of a storage.

if ($parent === '.') {
     $parent = '';
}

should be enough to handle the edge case

Copy link
Member Author

Choose a reason for hiding this comment

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

a move to user root worked in my test, but would not count out there are other scenarios 😁

Copy link
Member Author

Choose a reason for hiding this comment

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

adjusted to your suggestions anyways

@blizzz blizzz force-pushed the fix/noid/deletion-in-groupfolder branch from 950d054 to 604420b Compare October 2, 2025 11:44
@blizzz blizzz requested a review from icewind1991 October 2, 2025 11:45
@blizzz blizzz force-pushed the fix/noid/deletion-in-groupfolder branch from 604420b to eeeb83b Compare October 6, 2025 19:25
@blizzz blizzz force-pushed the fix/noid/deletion-in-groupfolder branch from eeeb83b to 07cad90 Compare October 6, 2025 19:29
@blizzz
Copy link
Member Author

blizzz commented Oct 6, 2025

/backport to stable32

@blizzz
Copy link
Member Author

blizzz commented Oct 6, 2025

/backport to stable31

@blizzz blizzz merged commit db1f29d into main Oct 8, 2025
66 checks passed
@blizzz blizzz deleted the fix/noid/deletion-in-groupfolder branch October 8, 2025 12:17
@AndyScherzinger
Copy link
Member

Does this apply to v30 as well? @blizzz ?

@blizzz
Copy link
Member Author

blizzz commented Oct 8, 2025

Does this apply to v30 as well? @blizzz ?

Nope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Ready to be reviewed bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants