From ac8dd275708f5c44e614b4e83eb31bc73c93228e Mon Sep 17 00:00:00 2001 From: Claudia Murialdo Date: Thu, 26 Dec 2024 13:39:13 -0300 Subject: [PATCH] If private external storage is enabled, reading a multimedia attribute from the database (stored in DB) created a temporary file in external storage with an invalid _url. This issue occurred because the presigned URL's private segment was not properly considered. --- dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs b/dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs index 809321a32..6712178b6 100644 --- a/dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs +++ b/dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs @@ -444,8 +444,8 @@ public GxExternalFileInfo(string objectPath, ExternalProvider provider, GxFileTy string folderName = ((ExternalProviderBase)provider).Folder; if (!string.IsNullOrEmpty(folderName) && fileType.HasFlag(GxFileType.Attribute) && !_name.StartsWith(folderName)) { - _url = $"{provider.GetBaseURL()}{_name}"; _name = $"{folderName}{StorageUtils.DELIMITER}{_name}"; + _url = provider.GetUrl(_name, fileType, 0); } } }