nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.69k stars 4k forks source link

[Bug]: external storage mount in a subdirectory structure does not show up when shared unless root directory already exists #47341

Closed mickenordin closed 1 week ago

mickenordin commented 3 weeks ago

⚠️ This issue respects the following points: ⚠️

Bug description

It is possible to create external storages and add users to them, and have the storage be invisible to the user, unless the user allready has the correct directory structure

Steps to reproduce

  1. As admin, create several external storages with the following names:
    toplevel/sublevel1
    toplevel/sublevel2
  2. Share both extenal storages with User A
  3. As user A, log in to Nextcloud and notice that you have no shares in your root folder.
  4. As User A notice that if you create a directory called toplevel your shares magically appears

Expected behavior

toplevel directory should be created if it does not allready exists

Installation method

None

Nextcloud Server version

29

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

No response

provokateurin commented 3 weeks ago

Also reproducible with a single external storage with a / in the name.

small1 commented 3 weeks ago

This also applies to groupfolders. if you create a nested groupfolder and the top oesnt exist you will get the same problem.

provokateurin commented 3 weeks ago

@small1 the groupfolders problem should be solved by my fix as well.