From 0517511a878476f7d78b4d8a121d97082fc1c95a Mon Sep 17 00:00:00 2001 From: Andre Duffeck Date: Mon, 18 Jul 2022 11:54:30 +0200 Subject: [PATCH] Fix item trashed event (#3083) * Fix resource ID in the ItemTrashed events * Add changelog --- changelog/unreleased/fix-item-trashed-event.md | 6 ++++++ internal/grpc/interceptors/eventsmiddleware/conversion.go | 1 + 2 files changed, 7 insertions(+) create mode 100644 changelog/unreleased/fix-item-trashed-event.md diff --git a/changelog/unreleased/fix-item-trashed-event.md b/changelog/unreleased/fix-item-trashed-event.md new file mode 100644 index 0000000000..7eab0678f5 --- /dev/null +++ b/changelog/unreleased/fix-item-trashed-event.md @@ -0,0 +1,6 @@ +Bugfix: Add space id to ItemTrashed event + +We fixed the resource IDs in the ItemTrashed events which were missing the +recently introduced space ID in the resource ID. + +https://github.com/cs3org/reva/pull/3083 diff --git a/internal/grpc/interceptors/eventsmiddleware/conversion.go b/internal/grpc/interceptors/eventsmiddleware/conversion.go index 4d5ca49dbe..1beae1571a 100644 --- a/internal/grpc/interceptors/eventsmiddleware/conversion.go +++ b/internal/grpc/interceptors/eventsmiddleware/conversion.go @@ -197,6 +197,7 @@ func ItemTrashed(r *provider.DeleteResponse, req *provider.DeleteRequest, execut Ref: req.Ref, ID: &provider.ResourceId{ StorageId: req.Ref.GetResourceId().GetStorageId(), + SpaceId: req.Ref.GetResourceId().GetSpaceId(), OpaqueId: opaqueID, }, }