Skip to content

fix: [OCISDEV-1685] remove stale group shares in the share manager - #13544

Merged
2403905 merged 1 commit into
masterfrom
fix/OCISDEV-1685-jsoncs3-master
Nov 23, 2026
Merged

2403905 merged 1 commit into
masterfrom
fix/OCISDEV-1685-jsoncs3-master

Conversation

@2403905

@2403905 2403905 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Backport of #13460 to master.

Status: draft, stacked on reva

go.mod points to commit ab7fd9959 of the reva PR owncloud/reva#832 (OCISDEV-1685). That PR is stacked on owncloud/reva#830 (OCISDEV-855). Merge the reva PRs first. Then bump reva to the merge commit and mark this PR as ready.

Problem

The jsoncs3 share manager uploaded the received.json file of a user again on each listing of the received shares when the user had a stale group share. The stale ID stayed, so this repeated on each listing. The description is in #13460 and owncloud/reva#813.

Change

  1. go.mod and vendor/: bump reva.
  2. services/sharing/pkg/config/config.go: the description of SHARING_USER_JSONCS3_MAX_CONCURRENCY says that the removal of shares always uses at least 3 go-routines. The default does not change.
  3. changelog/unreleased/bugfix-jsoncs3-stale-group-shares.md: changelog entry.

Difference from #13460

docs/helpers/env_vars.yaml does not exist on master, so this PR does not change it.

Other reva commits in the bump

master was behind the reva branch. The bump also brings:

Tests

  • I built ./ocis/cmd/ocis with -mod=vendor.
  • go test passes for ./services/sharing/... and ./services/storage-users/pkg/command/....
  • The reva tests are in the reva PRs.

🤖 Generated with Claude Code

@kw-security

kw-security commented Nov 20, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@2403905
2403905 force-pushed the fix/OCISDEV-1685-jsoncs3-master branch from b467bcb to 01ac54b Compare November 23, 2026 09:04
@2403905 2403905 mentioned this pull request Nov 23, 2026
2 of 9 tasks
@2403905
2403905 force-pushed the fix/OCISDEV-1685-jsoncs3-master branch from 01ac54b to 2c5f565 Compare November 23, 2026 14:26
Update reva to the commit 33e223087. It includes owncloud/reva#832, the
backport of owncloud/reva#813.

A stale group share is a share ID in the group cache that has no share. On
each listing of the received shares, the jsoncs3 share manager uploaded the
received.json file of the user again with the same content, and the stale ID
stayed. The new reva removes stale group shares, and it removes many shares
with one upload for each document.

The removal of shares uses at least 3 parallel removals, also when
SHARING_USER_JSONCS3_MAX_CONCURRENCY is 1. The default of the setting does
not change. The setting description and the changelog describe the minimum.

Backport of #13460.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Roman Perekhod <[email protected]>
@2403905
2403905 force-pushed the fix/OCISDEV-1685-jsoncs3-master branch from 2c5f565 to 593183a Compare November 23, 2026 18:31
@2403905
2403905 marked this pull request as ready for review November 23, 2026 18:32
@2403905
2403905 requested a review from a team as a code owner November 23, 2026 18:32
@2403905
2403905 enabled auto-merge (squash) November 23, 2026 18:35
@2403905
2403905 merged commit 28c7907 into master Nov 23, 2026
87 checks passed
@2403905
2403905 deleted the fix/OCISDEV-1685-jsoncs3-master branch November 23, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants