Skip to content

fix: [stable-8.2][OCISDEV-1685] remove stale group shares in jsoncs3 - #844

Merged
2403905 merged 1 commit into
stable-8.2from
fix/OCISDEV-1685-stable-8.2
Nov 25, 2026
Merged

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

Conversation

@2403905

@2403905 2403905 commented Nov 24, 2026 •

Copy link
Copy Markdown

Backport of #833 to stable-8.2.

Status

#843 is merged. This PR is rebased on stable-8.2 and has one commit.

Change

  1. Cherry-pick of the commit of fix: [stable-9.0][OCISDEV-1685] remove stale group shares in jsoncs3 #833. It applied without conflicts.
  2. The share manager removes stale group shares and removes many shares with one upload for each document.
  3. The changelog entry links to this PR, to fix: [stable-9.0][OCISDEV-1685] remove stale group shares in jsoncs3 #833 and to fix: [stable-8.0][OCISDEV-1685] remove stale group shares in jsoncs3 #813.

Tests

  • go build ./... passes.
  • go test passes for ./pkg/share/manager/jsoncs3/... and ./pkg/storage/utils/metadata/....

🤖 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.

kobergj
kobergj previously approved these changes Nov 24, 2026
mklos-kw
mklos-kw previously approved these changes Nov 24, 2026
Backport of #813 from stable-8.0 (cherry picked from commit ee73b99).

This commit depends on the backport of #751 (OCISDEV-855). It applies on top of it.

Differences from #813:

1. ProcessEvents keeps the tracing and autoprop context of stable-9.0. It passes
   this context to purgeSpace and logs the errors that purgeSpace returns.
2. The tests of the received share cache use the new test storage
   fullDownloadStorage. stable-9.0 has a newer metadata.Disk. It answers NotModified
   when IfNoneMatch has the etag of the file. The tests inject a conflict
   while the file does not change, so a re-read would keep the state of the
   failed write. A real conflict changes the etag, and the production code is
   not affected.

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

Backport of #833 to stable-8.2.
@2403905
2403905 dismissed stale reviews from mklos-kw and kobergj November 24, 2026 09:27

The merge-base changed after approval.

@2403905
2403905 force-pushed the fix/OCISDEV-1685-stable-8.2 branch from 1b56ab2 to 3ba8330 Compare November 24, 2026 09:27
2403905 added a commit to owncloud/ocis 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 to owncloud/ocis 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]>
@2403905
2403905 merged commit adc0cb3 into stable-8.2 Nov 25, 2026
16 checks passed
@2403905
2403905 deleted the fix/OCISDEV-1685-stable-8.2 branch November 25, 2026 14:01
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.

5 participants