Skip to content

Commit

Permalink
If private external storage is enabled, reading a multimedia attribut…
Browse files Browse the repository at this point in the history
…e 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)
  • Loading branch information
claudiamurialdo authored Jan 10, 2025
1 parent 93a6392 commit e865d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit e865d56

Please sign in to comment.