[Bug]: Folder creation/renaming failed on team folders with share
@Antreesy is already working on this.
Since Sep 11, 2026.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
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
Renaming a folder within a (sub-) directory of a teamfolder, which is additional shared to another user group, is not possible.
When using Windows sync client it's not longer possible to create new folders with specified name, because windows always creates "new folder" first before asking for the name, and the client synchronizes this folder before its locally renamed.
Steps to reproduce
- Create a teamfolder "team_folder" with an user group "group a" with all rights
- Create a subfolder within these teamfolder "sub"
- Create a share on "sub" to "group b" with all rights
- Try to create a new folder "test" using a member from "group a" within "sub". Folder is created without error.
- Try to rename "test" into "test1"
=> You'll get an error message, that the folder cannot be renamed.
=> In Systemlog you'll find an entry "Information | no app in context | Forbidden You cannot move a non-shareable node into a share" - When the share on "sub" is removed, than renaming "test" to "test1" is working again
Expected behavior
Renaming of a subfolder of "sub" should be possible, bus is denied.
Nextcloud Server version
32
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MySQL
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 Disabled
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
{
"system": {
"apps_paths": [
{
"path": "\/snap\/nextcloud\/current\/htdocs\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps",
"url": "\/extra-apps",
"writable": true
}
],
"supportedDatabases": [
"mysql"
],
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.local": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0
},
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"***REMOVED SENSITIVE VALUE***",
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "http:\/\/localhost",
"dbtype": "mysql",
"version": "32.0.2.2",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "UTC",
"installed": true,
"mail_smtpmode": "smtp",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "25",
"mail_smtpsecure": "tls",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"loglevel": 1,
"maintenance": false,
"trashbin_retention_obligation": "auto, 40",
"twofactor_enforced": "false",
"twofactor_enforced_groups": [],
"twofactor_enforced_excluded_groups": [],
"mysql.utf8mb4": true,
"theme": "",
"lost_password_link": "disabled",
"data-fingerprint": "***REMOVED SENSITIVE VALUE***",
"versions_retention_obligation": "auto, 180",
"maintenance_window_start": 1,
"forbidden_filename_basenames": [
"con",
"prn",
"aux",
"nul",
"com0",
"com1",
"com2",
"com3",
"com4",
"com5",
"com6",
"com7",
"com8",
"com9",
"com\u00b9",
"com\u00b2",
"com\u00b3",
"lpt0",
"lpt1",
"lpt2",
"lpt3",
"lpt4",
"lpt5",
"lpt6",
"lpt7",
"lpt8",
"lpt9",
"lpt\u00b9",
"lpt\u00b2",
"lpt\u00b3"
],
"forbidden_filename_characters": [
"<",
">",
":",
"\"",
"|",
"?",
"*",
"\\",
"\/"
],
"forbidden_filename_extensions": [
" ",
".",
".filepart",
".part"
],
"default_language": "de",
"default_locale": "de_DE"
}
}
List of activated Apps
Enabled:
- activity: 5.0.0-dev.0
- admin_audit: 1.22.0
- app_api: 32.0.0
- bruteforcesettings: 5.0.0-dev.0
- calendar: 6.1.0
- circles: 32.0.0
- cloud_federation_api: 1.16.0
- comments: 1.22.0
- contacts: 8.1.0
- dav: 1.34.2
- federatedfilesharing: 1.22.0
- files: 2.4.0
- files_downloadlimit: 5.0.0-dev.0
- files_reminders: 1.5.0
- files_retention: 3.0.0
- files_sharing: 1.24.1
- files_trashbin: 1.22.0
- files_versions: 1.25.0
- groupfolders: 20.1.4
- logreader: 5.0.0-dev.0
- lookup_server_connector: 1.20.0
- nextcloud_announcements: 4.0.0-dev.0
- notes: 4.12.4
- notifications: 5.0.0-dev.0
- oauth2: 1.20.0
- password_policy: 4.0.0-dev.0
- privacy: 4.0.0-dev.0
- profile: 1.1.0
- provisioning_api: 1.22.0
- quota_warning: 1.22.0
- recommendations: 5.0.0-dev.0
- related_resources: 3.0.0-dev.0
- serverinfo: 4.0.0-dev.0
- settings: 1.15.1
- sharebymail: 1.22.0
- systemtags: 1.22.0
- tasks: 0.17.1
- text: 6.0.1
- theming: 2.7.0
- twofactor_backupcodes: 1.21.0
- twofactor_totp: 14.0.0
- user_status: 1.12.0
- user_usage_report: 3.0.0
- viewer: 5.0.0-dev.0
- webhook_listeners: 1.3.0
- workflowengine: 2.14.0
Disabled:
- admin_notifications: 1.0.2 (installed 1.0.2)
- contactsinteraction: 1.13.1 (installed 1.10.0)
- dashboard: 7.12.0 (installed 7.0.0)
- documentserver_community: 0.2.1 (installed 0.2.1)
- encryption: 2.20.0
- federation: 1.22.0 (installed 1.6.0)
- files_accesscontrol: 3.0.2 (installed 3.0.2)
- files_external: 1.24.0 (installed 1.7.0)
- files_pdfviewer: 5.0.0-dev.0 (installed 1.8.0)
- files_rightclick: 0.15.1 (installed 1.6.0)
- files_trackdownloads: 1.11.0 (installed 1.11.0)
- firstrunwizard: 5.0.0-dev.0 (installed 2.9.0)
- mail: 5.6.1 (installed 1.9.5)
- onlyoffice: 9.11.0 (installed 9.11.0)
- photos: 5.0.0-dev.1 (installed 1.1.0)
- richdocuments: 9.0.1 (installed 9.0.1)
- richdocumentscode: 25.4.702 (installed 25.4.702)
- spreed: 22.0.4 (installed 22.0.4)
- support: 4.0.0-dev.0 (installed 1.3.0)
- survey_client: 4.0.0-dev.0 (installed 1.4.0)
- suspicious_login: 10.0.0-dev.0
- twofactor_nextcloud_notification: 6.0.0-dev.0
- user_ldap: 1.23.0
- weather_status: 1.12.0 (installed 1.0.0)
- workflow_script: 3.0.0 (installed 3.0.0)
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
{"reqId":"<...>","level":1,"time":"2025-11-27T12:38:36+00:00","remoteAddr":"<...>","user":"<...>","app":"no app in context","method":"MOVE","url":"/remote.php/dav/files/<username>/team_folder/sub/test1","message":"Uncaught exception","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0","version":"32.0.2.2","exception":{"Exception":"OCA\\DAV\\Connector\\Sabre\\Exception\\Forbidden","Message":"You cannot move a non-shareable node into a share","Code":0,"Trace":[{"file":"/snap/nextcloud/51274/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"validateMoveOrCopy","class":"OCA\\DAV\\Connector\\Sabre\\SharesPlugin","type":"->"},{"file":"/snap/nextcloud/51274/htdocs/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":603,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/51274/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/snap/nextcloud/51274/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/51274/htdocs/apps/dav/lib/Connector/Sabre/Server.php","line":211,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/51274/htdocs/apps/dav/lib/Server.php","line":424,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/snap/nextcloud/51274/htdocs/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/51274/htdocs/remote.php","line":151,"args":["/snap/nextcloud/51274/htdocs/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/snap/nextcloud/51274/htdocs/apps/dav/lib/Connector/Sabre/SharesPlugin.php","Line":267,"message":"Uncaught exception","exception":[],"CustomMessage":"Uncaught exception"},"id":"<...>"}
Additional info
We use this structure "team_folder" (group_folder before) together with shared subfolders (e.g. for offices) since at least 5 years - the first problem here occurs about 4 weeks ago, so it should be related to some update (maybe Nextcloud 32).
We are using Ubuntu SNAP installation (current master).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.