You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to look into it and the relevant code seems to be the postRename hook in FileHooks.php. This line $this->photofilesService->deleteByFile($source);
and then the deleteByFile function calls the $source->getId() which throws Files\NotFoundException.
The postRename hook was last modified by #1003
This PR changed the line $this->photofilesService->deleteByFile($target);
to $this->photofilesService->deleteByFile($source);
I'm not sure why this was changed this way and I would expect that moving a file doesn't change the file id.
So I think the line before the change is correct: $this->photofilesService->deleteByFile($target);
Bug description
When moving any file, an OCP\Files\NotFoundException error occurs in the error log:
Steps to reproduce
Expected behavior
No error in the logs
Installation method
Official Docker image
Operating system
Other
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install of the server?
None
Is this bug present after an update or on a fresh install of the app?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Browser Console
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: