mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-28 11:07:09 -05:00
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:
2 files changed
+7
-4
No files matched your search
@@ -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": {}
|
||||
|
||||
Reference in new issue
Block a user