nextcloud/apps
Anna Larch 85202d7f4e fix(sharing): restore STATUS_ACCEPTED for OC-migrated group share subshares
When an ownCloud-migrated group share (which has no per-user USERGROUP
subshare) is renamed for the first time, DefaultShareProvider::move()
inserted a new USERGROUP row without setting `accepted`. The column
defaulted to 0 (STATUS_PENDING), causing MountProvider to skip the
share on the next login — the shared file disappeared for the recipient.

Fix: set accepted = STATUS_ACCEPTED explicitly on the INSERT in
DefaultShareProvider::move() for the TYPE_GROUP branch.

Secondary fix: SharedMount::moveMount() silently returned true when
updateFileTarget() threw (e.g. group no longer exists on an OC-migrated
instance). Set $result = false in the catch block so View::rename()
propagates the failure instead of silently corrupting VFS state.

An opt-in occ command (sharing:fix-owncloud-group-shares) with --dry-run
support is included to repair existing broken instances. It targets only
TYPE_USERGROUP subshares with accepted=STATUS_PENDING and permissions!=0
(shares that were accepted but broken by the missing column default),
leaving explicitly declined shares (permissions=0) untouched.

AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Anna Larch <anna@nextcloud.com>
2026-06-02 09:14:52 +00:00
..
admin_audit fix(l10n): Update translations from Transifex 2026-03-31 00:19:24 +00:00
cloud_federation_api fix(l10n): Update translations from Transifex 2026-05-27 00:23:36 +00:00
comments fix(l10n): Update translations from Transifex 2026-05-22 00:23:02 +00:00
contactsinteraction fix(l10n): Update translations from Transifex 2026-03-27 00:29:17 +00:00
dashboard fix(l10n): Update translations from Transifex 2026-05-20 01:49:41 +00:00
dav fix(l10n): Update translations from Transifex 2026-05-29 00:23:56 +00:00
encryption Merge pull request #59808 from nextcloud/backport/56400/stable33 2026-05-21 10:59:56 +02:00
federatedfilesharing fix(l10n): Update translations from Transifex 2026-05-24 00:23:12 +00:00
federation test: adjust tests 2026-05-20 14:52:04 +02:00
files fix(l10n): Update translations from Transifex 2026-06-01 00:23:01 +00:00
files_external fix(l10n): Update translations from Transifex 2026-06-01 00:23:01 +00:00
files_reminders fix(l10n): Update translations from Transifex 2026-04-22 00:19:06 +00:00
files_sharing fix(sharing): restore STATUS_ACCEPTED for OC-migrated group share subshares 2026-06-02 09:14:52 +00:00
files_trashbin Revert "[stable33] Revert "Stable33 authoritative share"" 2026-04-28 15:49:33 +02:00
files_versions fix(l10n): Update translations from Transifex 2026-06-02 00:27:45 +00:00
lookup_server_connector fix(l10n): Update translations from Transifex 2026-03-28 00:30:34 +00:00
oauth2 fix(settings,oauth2): preserve wipe state across admin deletion paths 2026-05-27 15:43:19 +02:00
profile fix(l10n): Update translations from Transifex 2026-05-29 00:23:56 +00:00
provisioning_api fix(l10n): Update translations from Transifex 2026-05-29 00:23:56 +00:00
settings fix(l10n): Update translations from Transifex 2026-06-02 00:27:45 +00:00
sharebymail fix(l10n): Update translations from Transifex 2026-05-30 00:23:19 +00:00
systemtags fix(l10n): Update translations from Transifex 2026-05-22 00:23:02 +00:00
testing fix(testing): Fix fake provider reverting strings with emojis 2026-04-10 16:37:19 +00:00
theming fix(l10n): Update translations from Transifex 2026-05-25 00:22:52 +00:00
twofactor_backupcodes fix(l10n): Update translations from Transifex 2026-05-31 00:22:52 +00:00
updatenotification fix(l10n): Update translations from Transifex 2026-05-26 00:23:29 +00:00
user_ldap fix(l10n): Update translations from Transifex 2026-05-26 00:23:29 +00:00
user_status fix(l10n): Update translations from Transifex 2026-05-27 00:23:36 +00:00
weather_status fix(l10n): Update translations from Transifex 2026-05-27 00:23:36 +00:00
webhook_listeners fix: only allow full admins to create 'token needed' webhooks 2026-05-19 15:18:00 +00:00
workflowengine fix(l10n): Update translations from Transifex 2026-05-31 00:22:52 +00:00