Merge pull request #3939 from dragonchaser/backport-wp2-746

fix(graph): report the space name instead of "." for space roots in sharedByMe
This commit is contained in:
Jörn Friedrich Dreyer authored and GitHub committed 2026-11-10 16:03:42 +01:00
commit c292fc9c1f
2 files changed
+7 -4

No files matched your search

+5 -2
View File
@@ -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
}
@@ -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": {}