Skip to content

Commit e865d56

Browse files
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. (#1092)
1 parent 93a6392 commit e865d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@ public GxExternalFileInfo(string objectPath, ExternalProvider provider, GxFileTy
444444
string folderName = ((ExternalProviderBase)provider).Folder;
445445
if (!string.IsNullOrEmpty(folderName) && fileType.HasFlag(GxFileType.Attribute) && !_name.StartsWith(folderName))
446446
{
447-
_url = $"{provider.GetBaseURL()}{_name}";
448447
_name = $"{folderName}{StorageUtils.DELIMITER}{_name}";
448+
_url = provider.GetUrl(_name, fileType, 0);
449449
}
450450
}
451451
}

0 commit comments

Comments
 (0)