From 07f54f029f772833e1fd3429832f1459433b784c Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Mon, 19 Jun 2023 13:47:19 +0200 Subject: [PATCH] add token to LinkAccessedEvent Signed-off-by: Christian Richter --- changelog/unreleased/add-token-to-linkAccessed-event.md | 6 ++++++ internal/grpc/interceptors/eventsmiddleware/conversion.go | 1 + 2 files changed, 7 insertions(+) create mode 100644 changelog/unreleased/add-token-to-linkAccessed-event.md diff --git a/changelog/unreleased/add-token-to-linkAccessed-event.md b/changelog/unreleased/add-token-to-linkAccessed-event.md new file mode 100644 index 0000000000..1642cf9252 --- /dev/null +++ b/changelog/unreleased/add-token-to-linkAccessed-event.md @@ -0,0 +1,6 @@ +Bugfix: Add token to LinkAccessedEvent + +We added the link token to the LinkAccessedEvent + +https://github.com/cs3org/reva/pull/3993 +https://github.com/owncloud/ocis/issues/3753 \ No newline at end of file diff --git a/internal/grpc/interceptors/eventsmiddleware/conversion.go b/internal/grpc/interceptors/eventsmiddleware/conversion.go index 6041e5ba44..a4ff32f62b 100644 --- a/internal/grpc/interceptors/eventsmiddleware/conversion.go +++ b/internal/grpc/interceptors/eventsmiddleware/conversion.go @@ -168,6 +168,7 @@ func LinkAccessFailed(r *link.GetPublicShareByTokenResponse, req *link.GetPublic Status: r.Status.Code, Message: r.Status.Message, Timestamp: utils.TSNow(), + Token: req.Token, } if r.Share != nil { e.ShareID = r.Share.Id