groupfolders icon indicating copy to clipboard operation
groupfolders copied to clipboard

"bi-directional" share breaks the Files app

Open fangebee opened this issue 2 years ago โ€ข 0 comments

How to use GitHub

  • Please use the ๐Ÿ‘ reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

This may look weird, but unfortunately it's a possible scenario:

  1. Alice and Bob both belong to group Biditesters and group Biditesters has all permissions on groupfolder /TEST.
  2. Alice shares subfolder /TEST/mysubdir/ with Bob.
  3. Bob shares subfolder /TEST/mysubdir/ with group Biditesters.

Expected behaviour

Both Alice and Bob should be able to use the Files app like before.

Actual behaviour

Now Alice can't access to the Files app anymore. She sees this message saying "This directory is unavailable, please check the logs or contact the administrator". Probably the same issue as this one : https://github.com/nextcloud/server/issues/35994

Server configuration

Web server: Apache2 + mod_fcgi + php-fpm

Database: Postgresql

PHP version:

PHP 7.4, but also happens with PHP 8.2

Nextcloud version: (see Nextcloud admin page)

Starting with Nextcloud v24 and still present in v25.

Group folders version:

12.0.3 and also 13.1.6

Updated from an older Nextcloud/ownCloud or fresh install:

Updated from v23.

Are you using external storage, if yes which one: local/s3/smb/sftp/...

No external storage.

Are you using encryption: yes/no

No encryption.

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/Saml/...

LDAP/SAML

Client configuration

Browser:

Firefox / Chromium

Operating system:

Linux

Logs

Web server error log

PHP-fpm error log
[13-Oct-2023 13:49:13 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in /var/www/nextcloud/nextcloud-24.0.6/apps/files_sharing/lib/SharedStorage.php on line 533
[13-Oct-2023 13:49:13 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in /var/www/nextcloud/nextcloud-24.0.6/lib/base.php on line 608

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"LcyGIDBsEQXjR0aveBYT","level":0,"time":"2023-10-13T13:49:12+00:00","remoteAddr":"176.159.32.89","user":"achille.talon","app":"user_ldap","method":"PROPFIND","url":"/remote.php/dav/files/achille.talon/","message":"initializing paged search for filter (|(
objectclass=demoPeople)), base uid=10,ou=people,o=eedemo, attr [\"\"], limit 500, offset 0","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"24.0.6.1","data":{"app":"user_ldap"}}
{"reqId":"LcyGIDBsEQXjR0aveBYT","level":0,"time":"2023-10-13T13:49:12+00:00","remoteAddr":"176.159.32.89","user":"achille.talon","app":"user_ldap","method":"PROPFIND","url":"/remote.php/dav/files/achille.talon/","message":"Ready for a paged search","userAgent":"M
ozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"24.0.6.1","data":{"app":"user_ldap"}}
{"reqId":"LcyGIDBsEQXjR0aveBYT","level":0,"time":"2023-10-13T13:49:12+00:00","remoteAddr":"176.159.32.89","user":"achille.talon","app":"user_ldap","method":"PROPFIND","url":"/remote.php/dav/files/achille.talon/","message":"readAttribute: uid=10,ou=people,o=eedemo
 found","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"24.0.6.1","data":{"app":"user_ldap"}}
{"reqId":"LcyGIDBsEQXjR0aveBYT","level":0,"time":"2023-10-13T13:49:12+00:00","remoteAddr":"176.159.32.89","user":"achille.talon","app":"user_ldap","method":"PROPFIND","url":"/remote.php/dav/files/achille.talon/","message":"initializing paged search for filter obj
ectClass=*, base uid=10,ou=people,o=eedemo, attr [\"displayname\"], limit 500, offset 0","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"24.0.6.1","data":{"app":"user_ldap"}}
{"reqId":"LcyGIDBsEQXjR0aveBYT","level":0,"time":"2023-10-13T13:49:12+00:00","remoteAddr":"176.159.32.89","user":"achille.talon","app":"user_ldap","method":"PROPFIND","url":"/remote.php/dav/files/achille.talon/","message":"Ready for a paged search","userAgent":"M
ozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"24.0.6.1","data":{"app":"user_ldap"}}

Browser log

Browser log ``` XHR PROPFIND https://nextcloud.mydomain.local/remote.php/dav/files/achille.talon/ [HTTP/1.1 500 Internal Server Error 2060ms] ```

fangebee avatar Oct 13 '23 13:10 fangebee