Fix/ocisdev 1165/resource with same name gets prefix on share (#12730)

* feat: bump reva

Bumps reva to 441d6e77b33d, pulling in the vault/non-vault share
mountpoint collision fix, decomposedfs DisableVersioning aspect
handling, ChunkHandler.Assemble/scan fields, and LDAP retry policy
config. Also picks up the transitive nats-server, grpc, go-sqlite3
and antithesis-sdk-go bumps from reva's go.mod.

* docs: add changelog for vault share mountpoint collision fix

Documents the reva fix (owncloud/reva#691) that stops resources shared
under the same name from vault and non-vault mountpoints from getting
a spurious (1) suffix.
This commit is contained in:
Matteo authored and GitHub committed 2026-08-06 07:19:09 +02:00
1 parent 1a43d7ddc0
commit 092be75ca0
7 files changed
+32 -4

No files matched your search

+1
View File
@@ -8,3 +8,4 @@ https://github.com/owncloud/ocis/pull/12137
https://github.com/owncloud/ocis/pull/12302
https://github.com/owncloud/ocis/pull/12439
https://github.com/owncloud/ocis/pull/12266
https://github.com/owncloud/ocis/pull/12730
@@ -0,0 +1,12 @@
Bugfix: Do not collide vault and non-vault share mountpoints
Received shares mounted from the Vault storage and received shares mounted
from regular drives were treated as one flat namespace when computing a
unique mountpoint name. Sharing a resource with the same name once from a
regular drive and once from the Vault caused the second one to get a
spurious ` (1)` suffix, even though the two shares are rendered in
completely separate, segregated lists and never actually collide.
Mountpoint name collisions are now only checked against other shares within
the same vault/non-vault group.
https://github.com/owncloud/ocis/pull/12730
+1 -1
View File
@@ -66,7 +66,7 @@ require (
github.com/open-policy-agent/opa v1.19.0
github.com/orcaman/concurrent-map v1.0.0
github.com/owncloud/libre-graph-api-go v1.0.5-0.20260216101009-eeac018af245
github.com/owncloud/reva/v2 v2.0.0-20260805070924-99e16422505f
github.com/owncloud/reva/v2 v2.0.0-20260805165023-441d6e77b33d
github.com/pkg/errors v0.9.1
github.com/pkg/xattr v0.4.12
github.com/prometheus/client_golang v1.24.1
+2 -2
View File
@@ -736,8 +736,8 @@ github.com/orcaman/concurrent-map v1.0.0 h1:I/2A2XPCb4IuQWcQhBhSwGfiuybl/J0ev9HD
github.com/orcaman/concurrent-map v1.0.0/go.mod h1:Lu3tH6HLW3feq74c2GC+jIMS/K2CFcDWnWD9XkenwhI=
github.com/owncloud/libre-graph-api-go v1.0.5-0.20260216101009-eeac018af245 h1:JRidLTAKhnvyLMRtVtSF4lhBa0NSAOs6fof+d6JnKII=
github.com/owncloud/libre-graph-api-go v1.0.5-0.20260216101009-eeac018af245/go.mod h1:z61VMGAJRtR1nbgXWiNoCkxUXP1B3Je9rMuJbnGd+Og=
github.com/owncloud/reva/v2 v2.0.0-20260805070924-99e16422505f h1:8hdtqKeMvuTIdSLWYktyxTWihn35ol5KsKAKub3Tpe0=
github.com/owncloud/reva/v2 v2.0.0-20260805070924-99e16422505f/go.mod h1:XBnHPPDOGYq+Uf/PD1wGXne3xTvoghBxXPUULcSZjlc=
github.com/owncloud/reva/v2 v2.0.0-20260805165023-441d6e77b33d h1:auQ960+PZrtSuX67xizNIhP1PPgYsL/mt/1Ea9NMtO4=
github.com/owncloud/reva/v2 v2.0.0-20260805165023-441d6e77b33d/go.mod h1:XBnHPPDOGYq+Uf/PD1wGXne3xTvoghBxXPUULcSZjlc=
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c h1:rp5dCmg/yLR3mgFuSOe4oEnDDmGLROTvMragMUXpTQw=
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c/go.mod h1:X07ZCGwUbLaax7L0S3Tw4hpejzu63ZrrQiUe6W0hcy0=
github.com/pablodz/inotifywaitgo v0.0.12 h1:DVJJTFMDlSAdO46yisPF2vzozs/r+4k6ih8MVghq78M=
@@ -661,6 +661,7 @@ func getMountpointAndUnmountedShares(ctx context.Context, receivedShares []*coll
mount := base
existingMountpoint := ""
mountedShares := make([]string, 0, len(receivedShares))
newShareInVault := id.GetStorageId() == utils.VaultStorageProviderID
var pathExists bool
var err error
@@ -686,6 +687,14 @@ func getMountpointAndUnmountedShares(ctx context.Context, receivedShares []*coll
unmountedShares = append(unmountedShares, s)
}
// vault and non-vault shares are rendered in separate, segregated lists (see
// pkg/storage/registry/spaces/spaces.go), so name collisions must only be checked
// against mountpoints within the same list, not across both.
existingShareInVault := s.GetShare().GetResourceId().GetStorageId() == utils.VaultStorageProviderID
if existingShareInVault != newShareInVault {
continue
}
if s.State == collaboration.ShareState_SHARE_STATE_ACCEPTED {
// collect all accepted mount points
mountedShares = append(mountedShares, s.GetMountPoint().GetPath())
@@ -234,6 +234,12 @@ func New(o *options.Options, aspects aspects.Aspects, log *zerolog.Logger) (stor
aspects.UserMapper = &usermapper.NullMapper{}
}
// posix has no disable_versioning config key and sets this on the aspects only.
// One-directional: a driver that cannot keep revisions overrides the preference.
if aspects.DisableVersioning {
o.DisableVersioning = true
}
fs := &Decomposedfs{
tp: aspects.Tree,
lu: aspects.Lookup,
+1 -1
View File
@@ -1323,7 +1323,7 @@ github.com/orcaman/concurrent-map
# github.com/owncloud/libre-graph-api-go v1.0.5-0.20260216101009-eeac018af245
## explicit; go 1.18
github.com/owncloud/libre-graph-api-go
# github.com/owncloud/reva/v2 v2.0.0-20260805070924-99e16422505f
# github.com/owncloud/reva/v2 v2.0.0-20260805165023-441d6e77b33d
## explicit; go 1.26
github.com/owncloud/reva/v2/cmd/revad/internal/grace
github.com/owncloud/reva/v2/cmd/revad/runtime