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
Using the groupfolder permission occ command: occ groupfolders:permissions 4 --user User / -- +write
Expected behaviour
Setting the permission for the folder without error.
Actual behaviour
TypeError: Argument 2 passed to OCA\GroupFolders\ACL\Rule::__construct() must be of the type integer, string given, called in /var/www/html/nextcloud/apps/groupfolders/lib/Command/ACL.php on line 185 and defined in /var/www/html/nextcloud/apps/groupfolders/lib/ACL/Rule.php:48
Steps to reproduce
occ groupfolders:permissions 4 --user User / -- +write
Expected behaviour
Setting the permission for the folder without error.
Actual behaviour
TypeError: Argument 2 passed to OCA\GroupFolders\ACL\Rule::__construct() must be of the type integer, string given, called in /var/www/html/nextcloud/apps/groupfolders/lib/Command/ACL.php on line 185 and defined in /var/www/html/nextcloud/apps/groupfolders/lib/ACL/Rule.php:48
Solution
Forcing intval() on Cache::getId
https://github.com/nextcloud/server/blob/master/lib/private/Files/Cache/Cache.php#L419
Groupfolder issue:
nextcloud/groupfolders#470
Server configuration
Operating system:
Ubuntu
Web server:
Nginx
Database:
Mysql
PHP version:
7.2
Nextcloud version:
16.0.4
The text was updated successfully, but these errors were encountered: