Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55487eda55 |
No files matched your search
@@ -64,7 +64,7 @@ require (
|
||||
github.com/open-policy-agent/opa v1.12.3
|
||||
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-20260213104810-a8d45f58b2d5
|
||||
github.com/owncloud/reva/v2 v2.0.0-20260220160554-a1148ff19ce6
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/pkg/xattr v0.4.12
|
||||
github.com/prometheus/client_golang v1.23.2
|
||||
|
||||
@@ -742,8 +742,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-20260213104810-a8d45f58b2d5 h1:JyDXgzdkdfAPt9uRMQu49AreYpaUl+RinrNVITyfHu4=
|
||||
github.com/owncloud/reva/v2 v2.0.0-20260213104810-a8d45f58b2d5/go.mod h1:ahCZbT/ltp5J8aURUpTOfpA/dLBeTvHaMm772cvj7+U=
|
||||
github.com/owncloud/reva/v2 v2.0.0-20260220160554-a1148ff19ce6 h1:4SfHBNqNEpWGGQBbpKG9LTYt106uRCIS4nVQKoYpHk4=
|
||||
github.com/owncloud/reva/v2 v2.0.0-20260220160554-a1148ff19ce6/go.mod h1:ahCZbT/ltp5J8aURUpTOfpA/dLBeTvHaMm772cvj7+U=
|
||||
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.9 h1:njquRbBU7fuwIe5rEvtaniVBjwWzcpdUVptSgzFqZsw=
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -482,8 +482,8 @@ func (s *svc) updateGrant(ctx context.Context, id *provider.ResourceId, grant *p
|
||||
return nil, errors.Wrap(err, "gateway: error calling UpdateGrant")
|
||||
}
|
||||
if grantRes.Status.Code != rpc.Code_CODE_OK {
|
||||
return status.NewInternal(ctx,
|
||||
"error committing share to storage grant"), nil
|
||||
grantRes.Status.Message = "error committing share to storage grant"
|
||||
return grantRes.GetStatus(), nil
|
||||
}
|
||||
|
||||
return status.NewOK(ctx), nil
|
||||
|
||||
Generated
Vendored
+3
-3
@@ -368,7 +368,7 @@ func (s *service) UpdateShare(ctx context.Context, req *collaboration.UpdateShar
|
||||
if err != nil {
|
||||
return &collaboration.UpdateShareResponse{
|
||||
Status: status.NewInternal(ctx, "failed check user permission to write share"),
|
||||
}, err
|
||||
}, nil
|
||||
}
|
||||
if !ok {
|
||||
return &collaboration.UpdateShareResponse{
|
||||
@@ -403,7 +403,7 @@ func (s *service) UpdateShare(ctx context.Context, req *collaboration.UpdateShar
|
||||
log.Err(err).Interface("resource_id", req.GetShare().GetResourceId()).Msg("failed to stat resource to share")
|
||||
return &collaboration.UpdateShareResponse{
|
||||
Status: status.NewInternal(ctx, "failed to stat shared resource"),
|
||||
}, err
|
||||
}, nil
|
||||
}
|
||||
// the requesting user needs to be either the Owner/Creator of the share or have the UpdateGrant permissions on the Resource
|
||||
switch {
|
||||
@@ -414,7 +414,7 @@ func (s *service) UpdateShare(ctx context.Context, req *collaboration.UpdateShar
|
||||
default:
|
||||
return &collaboration.UpdateShareResponse{
|
||||
Status: status.NewPermissionDenied(ctx, nil, "no permission to remove grants on shared resource"),
|
||||
}, err
|
||||
}, nil
|
||||
}
|
||||
|
||||
// If this is a permissions update, check if user's permissions on the resource are sufficient to set the desired permissions
|
||||
|
||||
Generated
Vendored
+3
-3
@@ -37,7 +37,6 @@ import (
|
||||
link "github.com/cs3org/go-cs3apis/cs3/sharing/link/v1beta1"
|
||||
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
|
||||
typesv1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
|
||||
"github.com/iancoleman/strcase"
|
||||
"github.com/owncloud/reva/v2/internal/grpc/services/storageprovider"
|
||||
"github.com/owncloud/reva/v2/internal/http/services/owncloud/ocdav/config"
|
||||
"github.com/owncloud/reva/v2/internal/http/services/owncloud/ocdav/errors"
|
||||
@@ -53,6 +52,7 @@ import (
|
||||
"github.com/owncloud/reva/v2/pkg/rhttp/router"
|
||||
"github.com/owncloud/reva/v2/pkg/storagespace"
|
||||
"github.com/owncloud/reva/v2/pkg/utils"
|
||||
"github.com/iancoleman/strcase"
|
||||
"github.com/rs/zerolog"
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
"go.opentelemetry.io/otel/codes"
|
||||
@@ -1538,8 +1538,8 @@ func mdToPropResponse(ctx context.Context, pf *XML, md *provider.ResourceInfo, p
|
||||
}
|
||||
case "signature-auth":
|
||||
if isPublic {
|
||||
// Required to support archive downloads in password-protected public links.
|
||||
if strings.Contains(p, ls.Token) && ls.Signature != nil {
|
||||
// We only want to add the attribute to the root of the propfind.
|
||||
if strings.HasSuffix(p, ls.Token) && ls.Signature != nil {
|
||||
expiration := time.Unix(int64(ls.Signature.SignatureExpiration.Seconds), int64(ls.Signature.SignatureExpiration.Nanos))
|
||||
var sb strings.Builder
|
||||
sb.WriteString("<oc:signature>")
|
||||
|
||||
Vendored
+1
-1
@@ -1316,7 +1316,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-20260213104810-a8d45f58b2d5
|
||||
# github.com/owncloud/reva/v2 v2.0.0-20260220160554-a1148ff19ce6
|
||||
## explicit; go 1.24.0
|
||||
github.com/owncloud/reva/v2/cmd/revad/internal/grace
|
||||
github.com/owncloud/reva/v2/cmd/revad/runtime
|
||||
|
||||
Reference in new issue
Block a user