Skip to content

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

Merged
2403905 merged 2 commits into
stable-8.2from
fix/OCISDEV-1685-jsoncs3-stable-8.2
Nov 25, 2026
Merged

2403905 merged 2 commits into
stable-8.2from
fix/OCISDEV-1685-jsoncs3-stable-8.2

Conversation

@2403905

@2403905 2403905 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Backport of #13545 to stable-8.2.

Status: draft, stacked on reva

go.mod points to commit 1b56ab246 of the reva PR owncloud/reva#844 (OCISDEV-1685). That PR is stacked on owncloud/reva#843 (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. docs/helpers/env_vars.yaml: same description change. This file exists on stable-8.2.
  4. changelog/unreleased/bugfix-jsoncs3-stale-group-shares.md: changelog entry.

Other reva commits in the bump

stable-8.2 of ocis was behind the reva stable-8.2 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 24, 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 and others added 2 commits November 25, 2026 13:45
…e manager

Update reva to the commit 1b56ab246 of owncloud/reva#844, the backport of
owncloud/reva#833 to stable-8.2.

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 #13545 to stable-8.2.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Roman Perekhod <[email protected]>
…hangelog

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-stable-8.2 branch from f53d877 to 5b40a84 Compare November 25, 2026 12:46
@2403905
2403905 marked this pull request as ready for review November 25, 2026 13:15
@2403905
2403905 requested a review from a team as a code owner November 25, 2026 13:15
@2403905
2403905 enabled auto-merge (squash) November 25, 2026 13:32
@2403905
2403905 merged commit 0f6d80e into stable-8.2 Nov 25, 2026
75 checks passed
@2403905
2403905 deleted the fix/OCISDEV-1685-jsoncs3-stable-8.2 branch November 25, 2026 13:35
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