[SOLVED] GetAssetFoldersAsync invalid self link

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [x] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

.NET Client return list of folders but this does not contain folder name and also _links in folders refer to non exist resource.

var folders = await assetsClient.GetAssetFoldersAsync("app-name");
var self = folders.Items.First()._links["self"];

got something like /api/apps/app-name/assets/65d6b78a-bf43-4b56-8bd4-2527ef984334

and if I try to call it in postman or via var folderInfo = await assetsClient.GetAssetAsync("obletsvet", folders.Items.First().Id.ToString()); I got 404.

Expected behavior

.NET client should return folder name for assets which are folder also self link should point to an existing location. Maybe will be nice if it will be introduce new API in .NET client with GetAssetFolder(string appName, string folderId) which provide info about folder.

Minimal reproduction of the problem

Have at least 1 folder and call GetAssetFoldersAsync.

Environment

  • [x] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: last docker image

Thanks, I have removed it.

1 Like

And deployed it now to the cloud.