diff --git a/go.mod b/go.mod index 502dac70a26..fa409ff2fa6 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/coreos/go-oidc v2.2.1+incompatible github.com/coreos/go-oidc/v3 v3.6.0 github.com/cs3org/go-cs3apis v0.0.0-20230516150832-730ac860c71d - github.com/cs3org/reva/v2 v2.16.0 + github.com/cs3org/reva/v2 v2.16.1 github.com/disintegration/imaging v1.6.2 github.com/dutchcoders/go-clamd v0.0.0-20170520113014-b970184f4d9e github.com/egirna/icap-client v0.1.1 diff --git a/go.sum b/go.sum index 0655641fa72..d308d3f5574 100644 --- a/go.sum +++ b/go.sum @@ -864,10 +864,8 @@ github.com/crewjam/httperr v0.2.0 h1:b2BfXR8U3AlIHwNeFFvZ+BV1LFvKLlzMjzaTnZMybNo github.com/crewjam/httperr v0.2.0/go.mod h1:Jlz+Sg/XqBQhyMjdDiC+GNNRzZTD7x39Gu3pglZ5oH4= github.com/crewjam/saml v0.4.13 h1:TYHggH/hwP7eArqiXSJUvtOPNzQDyQ7vwmwEqlFWhMc= github.com/crewjam/saml v0.4.13/go.mod h1:igEejV+fihTIlHXYP8zOec3V5A8y3lws5bQBFsTm4gA= -github.com/cs3org/reva/v2 v2.15.1-0.20230816081257-e3a2be91bc4f h1:s0sBJbIB8atyhujVx/OaadujuRHer8ODPpWxyGWfw/s= -github.com/cs3org/reva/v2 v2.15.1-0.20230816081257-e3a2be91bc4f/go.mod h1:6GyXffmxluCqQxXaYuVC2Dg10gj0QW199iVlxV0EAJg= -github.com/cs3org/reva/v2 v2.16.0 h1:XBFoGhzKrcDqqRvYdicOpDOpQVIsRqALmEt8X0N+wm0= -github.com/cs3org/reva/v2 v2.16.0/go.mod h1:RvhuweTFqzezjUFU0SIdTXakrEx9vJlMvQ7znPXSP1g= +github.com/cs3org/reva/v2 v2.16.1 h1:mJA3Vg5nrrOXx1CcGUKrZ+gBR6bhRSqkVY2pqD3G55Q= +github.com/cs3org/reva/v2 v2.16.1/go.mod h1:RvhuweTFqzezjUFU0SIdTXakrEx9vJlMvQ7znPXSP1g= github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= diff --git a/vendor/github.com/cs3org/reva/v2/pkg/appctx/ctxmap.go b/vendor/github.com/cs3org/reva/v2/pkg/appctx/ctxmap.go index a7e10eaa8af..1acdec7bd99 100644 --- a/vendor/github.com/cs3org/reva/v2/pkg/appctx/ctxmap.go +++ b/vendor/github.com/cs3org/reva/v2/pkg/appctx/ctxmap.go @@ -41,20 +41,24 @@ func GetKeyValuesFromCtx(ctx context.Context) map[interface{}]interface{} { } func getKeyValue(ctx interface{}, m map[interface{}]interface{}) { - ctxVals := reflect.ValueOf(ctx).Elem() - ctxType := reflect.TypeOf(ctx).Elem() + // This is a dirty hack to run with go 1.21.x + reflectCtxValues := reflect.ValueOf(ctx) + if reflectCtxValues.Kind() != reflect.Struct { + ctxVals := reflectCtxValues.Elem() + ctxType := reflect.TypeOf(ctx).Elem() - if ctxType.Kind() == reflect.Struct { - for i := 0; i < ctxVals.NumField(); i++ { - currField, currIf := extractField(ctxVals, ctxType, i) - switch currField { - case "Context": - getKeyValue(currIf, m) - case "key": - nextField, nextIf := extractField(ctxVals, ctxType, i+1) - if nextField == "val" { - m[currIf] = nextIf - i++ + if ctxType.Kind() == reflect.Struct { + for i := 0; i < ctxVals.NumField(); i++ { + currField, currIf := extractField(ctxVals, ctxType, i) + switch currField { + case "Context": + getKeyValue(currIf, m) + case "key": + nextField, nextIf := extractField(ctxVals, ctxType, i+1) + if nextField == "val" { + m[currIf] = nextIf + i++ + } } } } diff --git a/vendor/github.com/cs3org/reva/v2/pkg/store/store.go b/vendor/github.com/cs3org/reva/v2/pkg/store/store.go index 79a84a065b6..68f71e3fac3 100644 --- a/vendor/github.com/cs3org/reva/v2/pkg/store/store.go +++ b/vendor/github.com/cs3org/reva/v2/pkg/store/store.go @@ -119,9 +119,11 @@ func Create(opts ...microstore.Option) microstore.Store { // TODO nats needs a DefaultTTL option as it does not support per Write TTL ... // FIXME nats has restrictions on the key, we cannot use slashes AFAICT // host, port, clusterid + natsOptions := nats.GetDefaultOptions() + natsOptions.Name = "TODO" // we can pass in the service name to allow identifying the client, but that requires adding a custom context option return natsjs.NewStore( append(opts, - natsjs.NatsOptions(nats.Options{Name: "TODO"}), + natsjs.NatsOptions(natsOptions), // always pass in properly initialized default nats options natsjs.DefaultTTL(ttl))..., ) // TODO test with ocis nats case TypeMemory, "mem", "": // allow existing short form and use as default diff --git a/vendor/modules.txt b/vendor/modules.txt index b18a56afc87..0492366f437 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -354,7 +354,7 @@ github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1 github.com/cs3org/go-cs3apis/cs3/storage/registry/v1beta1 github.com/cs3org/go-cs3apis/cs3/tx/v1beta1 github.com/cs3org/go-cs3apis/cs3/types/v1beta1 -# github.com/cs3org/reva/v2 v2.16.0 +# github.com/cs3org/reva/v2 v2.16.1 ## explicit; go 1.20 github.com/cs3org/reva/v2/cmd/revad/internal/grace github.com/cs3org/reva/v2/cmd/revad/runtime