Skip to content

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

Merged
2403905 merged 1 commit into
stable-9.0from
fix/OCISDEV-1685-jsoncs3-stable-9.0
Nov 23, 2026
Merged

2403905 merged 1 commit into
stable-9.0from
fix/OCISDEV-1685-jsoncs3-stable-9.0

Conversation

@2403905

@2403905 2403905 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Backport of #13460 to stable-9.0.

Status: draft, stacked on reva

go.mod points to commit c2ca15127 of the reva PR owncloud/reva#833 (OCISDEV-1685). That PR is stacked on owncloud/reva#831 (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 stable-9.0, so this PR does not change it.

Other reva commits in the bump

stable-9.0 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-stable-9.0 branch from af601bd to 19c144e Compare November 23, 2026 09:04
@2403905
2403905 force-pushed the fix/OCISDEV-1685-jsoncs3-stable-9.0 branch from 19c144e to ac79945 Compare November 23, 2026 14:26
…e manager

Update reva to the commit b4c4df426. It includes owncloud/reva#833, 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-stable-9.0 branch from ac79945 to d76cc29 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 7b5aabf into stable-9.0 Nov 23, 2026
153 of 155 checks passed
@2403905
2403905 deleted the fix/OCISDEV-1685-jsoncs3-stable-9.0 branch November 23, 2026 21:00
2403905 added a commit that referenced this pull request Nov 25, 2026
…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]>
2403905 added a commit that referenced this pull request Nov 25, 2026
…e manager (#13561)

* fix: [stable-8.2][OCISDEV-1685] remove stale group shares in the share 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]>

* docs: [stable-8.2][OCISDEV-1685] fix the pull request number in the changelog

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

---------

Signed-off-by: Roman Perekhod <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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