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 # =====================================================