From 27e76ab7a646fc56cb8013fd30bdcba4abefb14d Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Tue, 29 Mar 2022 17:46:54 +0200 Subject: [PATCH] fix special urls,prepare changelog, bump version --- changelog/1.19.1_2022-03-29/fix-special-urls.md | 5 +++++ graph/pkg/service/v0/driveitems.go | 2 +- sonar-project.properties | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 changelog/1.19.1_2022-03-29/fix-special-urls.md diff --git a/changelog/1.19.1_2022-03-29/fix-special-urls.md b/changelog/1.19.1_2022-03-29/fix-special-urls.md new file mode 100644 index 00000000000..602356859a5 --- /dev/null +++ b/changelog/1.19.1_2022-03-29/fix-special-urls.md @@ -0,0 +1,5 @@ +Bugfix: Return correct special item urls + +URLs for Special items (space image, readme) were broken. + +https://github.com/owncloud/ocis/pull/3419 diff --git a/graph/pkg/service/v0/driveitems.go b/graph/pkg/service/v0/driveitems.go index 6f72fe7b4cd..ce801aaf26f 100644 --- a/graph/pkg/service/v0/driveitems.go +++ b/graph/pkg/service/v0/driveitems.go @@ -247,7 +247,7 @@ func (g Graph) getSpecialDriveItem(ctx context.Context, ID *storageprovider.Reso return nil } spaceItem.SpecialFolder = &libregraph.SpecialFolder{Name: libregraph.PtrString(itemName)} - spaceItem.WebDavUrl = libregraph.PtrString(baseURL.String() + path.Join(space.Id.String(), *itemPath)) + spaceItem.WebDavUrl = libregraph.PtrString(baseURL.String() + path.Join(space.Id.OpaqueId, *itemPath)) return spaceItem } diff --git a/sonar-project.properties b/sonar-project.properties index f9a3ed7ee83..52ef9a9c54d 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -2,7 +2,7 @@ sonar.projectKey=owncloud_ocis sonar.organization=owncloud-1 sonar.projectName=ocis -sonar.projectVersion=1.19.0 +sonar.projectVersion=1.19.1 sonar.host.url=https://sonarcloud.io # =====================================================