-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmap31-feedbackbughigh
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
Hey Guys,
Its not possible to delete a Folder that I shared with a "Internal Group" --> Internal Link
I got this error if I want to delete the share:
[no app in context] Error: OCA\Activity\FilesHooks::{closure:OCA\Activity\FilesHooks::unshareFromGroup():934}(): Argument #1 ($user) must be of type OCP\IUser, string given in file '/var/www/nextcloud/apps/activity/lib/FilesHooks.php' line 934
DELETE /ocs/v2.php/apps/files_sharing/api/v1/shares/505
from xxxxxxxxx by xxxxxxxxx at Mar 20, 2025, 4:47:20 PM
Steps to reproduce
- Create Folder
- Share Folder with internal Group
- Give them rights "Allow to download and sync" + "Custom permission "read"
- Share it
- Edit Share -> Delete Share
- You got the error
Expected behavior
Deleting the share should be possible
Nextcloud Server version
31
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.4
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 31 to 32)
Are you using the Nextcloud Server Encryption module?
Encryption is Enabled
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"xxx"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "31.0.0.18",
"overwrite.cli.url": "https:\/\/xxx",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "3306",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"mail_smtptimeout": 30,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauth": true,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"ldapIgnoreNamingRules": false,
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
"maintenance": false,
"maintenance_window_start": 1,
"debug": false,
"updater.release.channel": "stable",
"check_for_working_htaccess": true,
"config_is_read_only": false,
"theme": "",
"loglevel": 2,
"cookie.secure": true,
"cookie.httponly": true,
"cookie.samesite": "Strict",
"cookie.prefix": "__Host-",
"overwriteprotocol": "https",
"memcache.local": "\\OC\\Memcache\\Redis",
"filelocking.enabled": "true",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"session_lifetime": 60,
"session:keepalive": false,
"remember_login_cookie_lifetime": 0,
"hsts_header": "max-age=15552000; includeSubDomains;",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379,
"timeout": 0,
"dbindex": 0
},
"encryption.legacy_format_support": false,
"encryption.key_storage_migrated": false,
"default_phone_region": "CH",
"twofactor_enforced": "true",
"twofactor_enforced_groups": [
"xxx",
"xxx",
"xxx"
],
"twofactor_enforced_excluded_groups": [
"admin"
]
}
}List of activated Apps
Enabled:
- activity: 4.0.0
- admin_audit: 1.21.0
- app_api: 5.0.2
- bruteforcesettings: 4.0.0
- circles: 31.0.0-dev.0
- cloud_federation_api: 1.14.0
- comments: 1.21.0
- contactsinteraction: 1.12.0
- dashboard: 7.11.0
- dav: 1.33.0
- encryption: 2.19.0
- federatedfilesharing: 1.21.0
- federation: 1.21.0
- files: 2.3.1
- files_downloadlimit: 4.0.0
- files_pdfviewer: 4.0.0
- files_reminders: 1.4.0
- files_sharing: 1.23.1
- files_trashbin: 1.21.0
- files_versions: 1.24.0
- firstrunwizard: 4.0.0
- forms: 5.0.4
- groupfolders: 19.0.4
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- nextcloud_announcements: 3.0.0
- notifications: 4.0.0
- oauth2: 1.19.1
- password_policy: 3.0.0
- photos: 4.0.0-dev.1
- privacy: 3.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- quota_warning: 1.21.0
- recommendations: 4.0.0
- related_resources: 2.0.0
- secrets: 2.1.2
- serverinfo: 3.0.0
- settings: 1.14.0
- sharebymail: 1.21.0
- support: 3.0.0
- survey_client: 3.0.0
- suspicious_login: 9.0.1
- systemtags: 1.21.1
- text: 5.0.0
- theming: 2.6.1
- twofactor_backupcodes: 1.20.0
- twofactor_totp: 13.0.0-dev.0
- updatenotification: 1.21.0
- user_ldap: 1.22.0
- user_status: 1.11.0
- viewer: 4.0.0
- weather_status: 1.11.0
- webhook_listeners: 1.2.0
- whiteboard: 1.0.5
- workflowengine: 2.13.0
Disabled:
- files_external: 1.23.0 (installed 1.17.0)
- twofactor_nextcloud_notification: 5.0.0Nextcloud Signing status
No errors have been found.Nextcloud Logs
[no app in context] Error: OCA\Activity\FilesHooks::{closure:OCA\Activity\FilesHooks::unshareFromGroup():934}(): Argument #1 ($user) must be of type OCP\IUser, string given in file '/var/www/nextcloud/apps/activity/lib/FilesHooks.php' line 934
DELETE /ocs/v2.php/apps/files_sharing/api/v1/shares/505
from xxxxxxxxx by xxxxxxxxx at Mar 20, 2025, 4:47:20 PM
Additional info
No response
Metadata
Metadata
Assignees
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmap31-feedbackbughigh
