[Bug]: The FilePicker does not load for moving or copying a file or a folder when not logged in #45420
Closed
5 of 8 tasks
Labels
1. to develop
Accepted and waiting to be taken care of
28-feedback
30-feedback
bug
feature: filepicker
Bug description
The file picker does not load for moving or copying a file or a folder when not logged in.
Steps to reproduce
Expected behavior
The file picker should load and display the current directory.
Installation method
None
Nextcloud Server version
28
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
The browser console output
This is the error thrown:
server/apps/files/src/services/Files.ts
Line 45 in 5a6e48e
I think it is where it is called from:
server/apps/files/src/actions/moveOrCopyAction.ts
Line 145 in 5a6e48e
The call of
getContents
seems to be the culprit there. And it is not systematic in this file.method === MoveCopyAction.COPY
, it's usingclient.getDirectoryContents
.MoveCopyAction.MOVE_OR_COPY
) ,getContents
(which looks for the user id) is used.Moreover, it seems the comments are not consistent with the code.
Example:
https://github.com/nextcloud/server/blob/5a6e48e85034aa81862b1fcbd93cb4ce58165e72/apps/files/src/actions/moveOrCopyAction.ts#L144C1-L146C52
It seems nothing is testing of we allow or not overwriting since 9d613d0.
@emoral435, do you have an insight on this?
The text was updated successfully, but these errors were encountered: