Skip to content
Snippets Groups Projects
Commit 59104f72 authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Fix: int32 overflow for size attribute

parent 411fa7f1
No related branches found
No related tags found
2 merge requests!48Hotfix/1681 fixLargeFileSizeQuery,!47Sprint/2021 16
## Tree ## Tree
The TreeApi handles the retrieving or storing metadata to a certain path. The TreeApi handles the retrieving or storing metadata to a certain path.
...@@ -149,8 +149,8 @@ namespace Coscine.Api.Tree.Controllers ...@@ -149,8 +149,8 @@ namespace Coscine.Api.Tree.Controllers
{ {
Name = GetFolderOrFileName(x), Name = GetFolderOrFileName(x),
Path = x.Key, Path = x.Key,
Size = (int)x.BodyBytes, Size = x.BodyBytes,
Kind = x.Key[(x.Key.LastIndexOf(".") + 1)..], Kind = x.HasBody ? "file" : "folder",
Provider = resource.Type.DisplayName Provider = resource.Type.DisplayName
}; };
var objectMetaInfoReturnObject = new ObjectMetaInfoReturnObject(objectMetaInfo, _blobApiLink, resource.Id.ToString()); var objectMetaInfoReturnObject = new ObjectMetaInfoReturnObject(objectMetaInfo, _blobApiLink, resource.Id.ToString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment