build: bump reva to the public share listing fix

Pulls in the ListPublicShares change that answers with an OK status
and no shares when the share manager reports an AlreadyExists error,
and the errtypes.ERR_ALREADY_EXISTS prefix the graph service needs to
detect that error.

reva is replaced with the PR head in the butonic fork until the reva
PR is merged.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer committed 2026-11-12 13:14:50 +01:00
1 parent 0da2e8954a
commit 0a7772fb1f
5 files changed
+15 -7

No files matched your search

+2
View File
@@ -404,3 +404,5 @@ replace go-micro.dev/v4 => github.com/butonic/go-micro/v4 v4.11.4-0.202609292135
exclude github.com/mattn/go-sqlite3 v2.0.3+incompatible
replace github.com/go-micro/plugins/v4/store/nats-js-kv => github.com/opencloud-eu/go-micro-plugins/v4/store/nats-js-kv v0.0.0-20250512152754-23325793059a
replace github.com/opencloud-eu/reva/v2 => github.com/butonic/reva/v2 v2.0.0-20261112120609-db4a39bfcf12
+2 -2
View File
@@ -164,6 +164,8 @@ github.com/bufbuild/protocompile v0.14.1 h1:iA73zAf/fyljNjQKwYzUHD6AD4R8KMasmwa/
github.com/bufbuild/protocompile v0.14.1/go.mod h1:ppVdAIhbr2H8asPk6k4pY7t9zB1OU5DoEw9xY/FUi1c=
github.com/butonic/go-micro/v4 v4.11.4-0.20260929213538-cd412c159a26 h1:DtJ8z75PCgVcghoDE0KoTVWc0xp1mN9xyvDebMPB688=
github.com/butonic/go-micro/v4 v4.11.4-0.20260929213538-cd412c159a26/go.mod h1:Pxkj/TW2+3WWT0h0JVdMi+DUjvLWAF+tR/vymiXea2Q=
github.com/butonic/reva/v2 v2.0.0-20261112120609-db4a39bfcf12 h1:DlTw/NkZ4ZahPqUQa/fn8cVFDieywNaIyavAfsjRuI0=
github.com/butonic/reva/v2 v2.0.0-20261112120609-db4a39bfcf12/go.mod h1:nKOQFFHQZiBFiiXBqEIc99giHQ/Pe0XYf5cztJhZDYw=
github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=
github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8=
@@ -761,8 +763,6 @@ github.com/opencloud-eu/icap-client v0.0.0-20250930132611-28a2afe62d89 h1:W1ms+l
github.com/opencloud-eu/icap-client v0.0.0-20250930132611-28a2afe62d89/go.mod h1:vigJkNss1N2QEceCuNw/ullDehncuJNFB6mEnzfq9UI=
github.com/opencloud-eu/libre-graph-api-go v1.0.9-0.20261016073229-17ed3d5dd346 h1:3ptbiFhSK4fzY/rC3idcYUveiwepMoOov1sBpc7Rg3k=
github.com/opencloud-eu/libre-graph-api-go v1.0.9-0.20261016073229-17ed3d5dd346/go.mod h1:lTM8JeGblNpoMySTW7Lui2+c5TTLI95mwxtdUIHHrhU=
github.com/opencloud-eu/reva/v2 v2.52.2-0.20261111125001-fa3c9e289ad6 h1:EvMm2GuJwm2f7C6CgIulV4ijksRhXj4bgwI5BSfHTxo=
github.com/opencloud-eu/reva/v2 v2.52.2-0.20261111125001-fa3c9e289ad6/go.mod h1:nKOQFFHQZiBFiiXBqEIc99giHQ/Pe0XYf5cztJhZDYw=
github.com/opencloud-eu/secure v0.0.0-20260312082735-b6f5cb2244e4 h1:l2oB/RctH+t8r7QBj5p8thfEHCM/jF35aAY3WQ3hADI=
github.com/opencloud-eu/secure v0.0.0-20260312082735-b6f5cb2244e4/go.mod h1:BmF5hyM6tXczk3MpQkFf1hpKSRqCyhqcbiQtiAF7+40=
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
@@ -24,6 +24,7 @@ import (
"fmt"
"regexp"
"strconv"
"strings"
"time"
gateway "github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1"
@@ -458,10 +459,10 @@ func (s *service) ListPublicShares(ctx context.Context, req *link.ListPublicShar
user, _ := ctxpkg.ContextGetUser(ctx)
shares, err := s.sm.ListPublicShares(ctx, user, req.Filters, req.GetSign())
if err != nil {
log.Err(err).Msg("error listing shares")
if err != nil && !strings.Contains(err.Error(), errtypes.ERR_ALREADY_EXISTS) {
log.Err(err).Str("user", user.GetId().GetOpaqueId()).Msg("error listing shares")
return &link.ListPublicSharesResponse{
Status: status.NewInternal(ctx, "error listing public shares"),
Status: status.NewInternal(ctx, err.Error()),
}, nil
}
+5 -1
View File
@@ -99,7 +99,11 @@ func (e PreconditionFailed) IsPreconditionFailed() {}
// AlreadyExists is the error to use when a resource something is not found.
type AlreadyExists string
func (e AlreadyExists) Error() string { return "error: already exists: " + string(e) }
// ERR_ALREADY_EXISTS is the prefix of every AlreadyExists error message, for callers
// that only see the message (e.g. a status message passed through grpc).
const ERR_ALREADY_EXISTS = "error: already exists:"
func (e AlreadyExists) Error() string { return ERR_ALREADY_EXISTS + " " + string(e) }
// IsAlreadyExists implements the IsAlreadyExists interface.
func (e AlreadyExists) IsAlreadyExists() {}
+2 -1
View File
@@ -1360,7 +1360,7 @@ github.com/opencloud-eu/icap-client
# github.com/opencloud-eu/libre-graph-api-go v1.0.9-0.20261016073229-17ed3d5dd346
## explicit; go 1.23
github.com/opencloud-eu/libre-graph-api-go
# github.com/opencloud-eu/reva/v2 v2.52.2-0.20261111125001-fa3c9e289ad6
# github.com/opencloud-eu/reva/v2 v2.52.2-0.20261111125001-fa3c9e289ad6 => github.com/butonic/reva/v2 v2.0.0-20261112120609-db4a39bfcf12
## explicit; go 1.26.0
github.com/opencloud-eu/reva/v2/cmd/revad/internal/grace
github.com/opencloud-eu/reva/v2/cmd/revad/runtime
@@ -2691,3 +2691,4 @@ stash.kopano.io/kgol/rndm
# github.com/unrolled/secure => github.com/opencloud-eu/secure v0.0.0-20260312082735-b6f5cb2244e4
# go-micro.dev/v4 => github.com/butonic/go-micro/v4 v4.11.4-0.20260929213538-cd412c159a26
# github.com/go-micro/plugins/v4/store/nats-js-kv => github.com/opencloud-eu/go-micro-plugins/v4/store/nats-js-kv v0.0.0-20250512152754-23325793059a
# github.com/opencloud-eu/reva/v2 => github.com/butonic/reva/v2 v2.0.0-20261112120609-db4a39bfcf12