Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy / move from one subfolder to another subfolder does not work #2771

Closed
survival8 opened this issue Jan 18, 2024 · 3 comments · Fixed by nextcloud/server#45688
Closed
Labels
0. Needs triage Issues that need to be triaged bug

Comments

@survival8
Copy link

Steps to reproduce

  1. setup:
  • Create a root folder named folder_r_a with read permission for the user John
  • Create a subfolder in folder_r_a with the name sub_a with write permission for the user John
  • Create a root folder named folder_r_b with read permission for the user John
  • Create a subfolder in folder_r_b with the name sub_b with write permission for the user John
  1. the user John creates a file in sub_a

  2. the user John selects the file and presses "copy or move"

  3. in the new window, the user clicks on the home button to go to the root

  4. then the folders "folder_r_a" and "folder_r_b" in the root directory are not visible in the window
    -> This means that the user John cannot copy or move a file from sub_a to sub_b.

Only if John has write permissions for the folder_r_b, the folder name is displayed in the "Copy/Move - Window" and then it would possible to copy or move. But the write premission for the root folders would not be an option.

Use case:
There are several root directories that no user is allowed to write to. There are subdirectories in these directories where different users have different rights.
Users should now copy or move files from a subdirectory of a root directory to the subdirectory of another root directory.
For example, copy from administration to general information:
-Department
|_ Administration
|_ Finance
-Public
|_ General information
|_ ...

Server configuration

Nextcloud version: (see Nextcloud admin page)
28.0.1
Group folders version:
16.0.3
Updated from an older Nextcloud/ownCloud or fresh install:
no
Are you using external storage, if yes which one: local/s3/smb/sftp/...
no
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/Saml/...
no

Client configuration

Browser:
various
Operating system:
various

Logs

No log because no error or others related to this issue in log

@survival8 survival8 added 0. Needs triage Issues that need to be triaged bug labels Jan 18, 2024
@heisenbol
Copy link

I believe that this problem exists regardless of the source location of the file/folder you want to move. The source can be anywhere. If the user does not have create permission on the root groufolder, but has permissions on a subfolder, he can not select the subfolder as the root folder is not visible (is not offered as destination for move)

@bwurst
Copy link

bwurst commented Apr 4, 2024

Stumbled upon this issue and reported it as a bug in nextcloud server: nextcloud/server#44649
It is a design decision to filter out write protected folders in copy/move dialog so you can't step into folders you have no write permission.
Nextcloud core has no feature to make intermediate folders write protected so the developers obviously did not concern about this.

Workarounds I found so far:

  1. temporarily share subfolder directly to a user that wants to copy stuff into it
  2. Use a desktop or mobile app

@fuco809
Copy link

fuco809 commented May 23, 2024

maybe same - #2926

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Issues that need to be triaged bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants