Skip to content

Commit ecad57a

Browse files
authored
Merge pull request #10172 from owncloud/fix-sharejail-stat-id
[full-ci] bump reva to 02af5a266
2 parents 8f9b274 + 633b681 commit ecad57a

File tree

8 files changed

+49
-16
lines changed

8 files changed

+49
-16
lines changed

changelog/unreleased/bump-reva.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ Enhancement: Bump reva
22

33
Bumps reva version
44

5+
https://github.com/owncloud/ocis/pull/10172
56
https://github.com/owncloud/ocis/pull/10157
67
https://github.com/owncloud/ocis/pull/9817

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
github.com/cenkalti/backoff v2.2.1+incompatible
1616
github.com/coreos/go-oidc/v3 v3.11.0
1717
github.com/cs3org/go-cs3apis v0.0.0-20240724121416-062c4e3046cb
18-
github.com/cs3org/reva/v2 v2.24.2-0.20240926082340-b5c3c6781528
18+
github.com/cs3org/reva/v2 v2.24.2-0.20240930121615-c33c803283ee
1919
github.com/dhowden/tag v0.0.0-20230630033851-978a0926ee25
2020
github.com/dutchcoders/go-clamd v0.0.0-20170520113014-b970184f4d9e
2121
github.com/egirna/icap-client v0.1.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ github.com/crewjam/saml v0.4.14 h1:g9FBNx62osKusnFzs3QTN5L9CVA/Egfgm+stJShzw/c=
255255
github.com/crewjam/saml v0.4.14/go.mod h1:UVSZCf18jJkk6GpWNVqcyQJMD5HsRugBPf4I1nl2mME=
256256
github.com/cs3org/go-cs3apis v0.0.0-20240724121416-062c4e3046cb h1:KmYZDReplv/yfwc1LNYpDcVhVujC3Pasv6WjXx1haSU=
257257
github.com/cs3org/go-cs3apis v0.0.0-20240724121416-062c4e3046cb/go.mod h1:yyP8PRo0EZou3nSH7H4qjlzQwaydPeIRNgX50npQHpE=
258-
github.com/cs3org/reva/v2 v2.24.2-0.20240926082340-b5c3c6781528 h1:sNq9lYNXQeqGGGe8m9zGdzBiw2QYs4fe0zXYTFfD++g=
259-
github.com/cs3org/reva/v2 v2.24.2-0.20240926082340-b5c3c6781528/go.mod h1:p7CHBXcg6sSqB+0JMNDfC1S7TSh9FghXkw1kTV3KcJI=
258+
github.com/cs3org/reva/v2 v2.24.2-0.20240930121615-c33c803283ee h1:+1sYiuA9LRQIznBNG1AFQoIGdCUCqQT1Dof2rTTsDm8=
259+
github.com/cs3org/reva/v2 v2.24.2-0.20240930121615-c33c803283ee/go.mod h1:p7CHBXcg6sSqB+0JMNDfC1S7TSh9FghXkw1kTV3KcJI=
260260
github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4=
261261
github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=
262262
github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=

services/graph/pkg/service/v0/tags.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ func (g Graph) AssignTags(w http.ResponseWriter, r *http.Request) {
8686
return
8787
}
8888

89+
// use resource id from stat response to work on the actual resource and not a share jail item
90+
rid = *sres.GetInfo().GetId()
91+
8992
pm := sres.GetInfo().GetPermissionSet()
9093
if pm == nil {
9194
g.logger.Error().Err(err).Msg("no permissionset on file")
@@ -185,6 +188,9 @@ func (g Graph) UnassignTags(w http.ResponseWriter, r *http.Request) {
185188
return
186189
}
187190

191+
// use resource id from stat response to work on the actual resource and not a share jail item
192+
rid = *sres.GetInfo().GetId()
193+
188194
pm := sres.GetInfo().GetPermissionSet()
189195
if pm == nil {
190196
g.logger.Error().Err(err).Msg("no permissionset on file")

tests/acceptance/features/apiSharingNg1/propfindShares.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Feature: propfind a shares
4949
| textfile.txt | textfile (1).txt |
5050
| folderToShare | folderToShare (1) |
5151

52-
@issue-4421
52+
@issue-4421 @issue-9933 @skip
5353
Scenario Outline: sharee PROPFIND same name shares shared by multiple users using new dav path
5454
Given using <dav-path-version> DAV path
5555
And user "Alice" has uploaded file with content "to share" to "textfile.txt"
@@ -93,7 +93,7 @@ Feature: propfind a shares
9393
| new | textfile.txt | textfile (1).txt |
9494
| new | folderToShare | folderToShare (1) |
9595

96-
@issue-4421
96+
@issue-4421 @issue-9933 @skip
9797
Scenario: sharee PROPFIND shares with bracket in the name
9898
Given using spaces DAV path
9999
And user "Alice" has created folder "folderToShare"

vendor/github.com/cs3org/reva/v2/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go

Lines changed: 13 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cs3org/reva/v2/pkg/storage/utils/metadata/cs3.go

Lines changed: 23 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1
367367
github.com/cs3org/go-cs3apis/cs3/storage/registry/v1beta1
368368
github.com/cs3org/go-cs3apis/cs3/tx/v1beta1
369369
github.com/cs3org/go-cs3apis/cs3/types/v1beta1
370-
# github.com/cs3org/reva/v2 v2.24.2-0.20240926082340-b5c3c6781528
370+
# github.com/cs3org/reva/v2 v2.24.2-0.20240930121615-c33c803283ee
371371
## explicit; go 1.21
372372
github.com/cs3org/reva/v2/cmd/revad/internal/grace
373373
github.com/cs3org/reva/v2/cmd/revad/runtime

0 commit comments

Comments
 (0)