diff --git a/services/graph/pkg/service/v0/driveitems.go b/services/graph/pkg/service/v0/driveitems.go index 88ba754796..f1ea215b0e 100644 --- a/services/graph/pkg/service/v0/driveitems.go +++ b/services/graph/pkg/service/v0/driveitems.go @@ -513,9 +513,12 @@ func cs3ResourceToDriveItem(logger *log.Logger, publicBaseURL *url.URL, res *sto webURL.Path = path.Join(webURL.Path, "f", storagespace.FormatResourceID(res.GetId())) driveItem.WebUrl = libregraph.PtrString(webURL.String()) - if name := path.Base(res.GetPath()); name != "" { - driveItem.Name = &name + name := res.GetName() + if name == "" { + name = path.Base(res.GetPath()) } + driveItem.Name = &name + if res.GetEtag() != "" { driveItem.ETag = &res.Etag } diff --git a/tests/acceptance/features/apiSharingNg1/sharedByMe.feature b/tests/acceptance/features/apiSharingNg1/sharedByMe.feature index 1223b03c23..782cd63ebf 100644 --- a/tests/acceptance/features/apiSharingNg1/sharedByMe.feature +++ b/tests/acceptance/features/apiSharingNg1/sharedByMe.feature @@ -3378,7 +3378,7 @@ Feature: resources shared by user } """ - @issue-8355 + Scenario: sharer lists the link share of a project space Given using spaces DAV path And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API @@ -3413,7 +3413,7 @@ Feature: resources shared by user ], "properties": { "name": { - "const": "." + "const": "NewSpace" }, "root": { "const": {}