From 503e144fb3393f1cbd222c02e88c2ee7e4bea18e Mon Sep 17 00:00:00 2001 From: claudiamurialdo <33756655+claudiamurialdo@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:57:49 -0300 Subject: [PATCH] The 'GetURL' method of the external file did not take into consideration the URL (which has specific attributes such as expiration time) (#898) --- dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs b/dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs index 09aeea02c..b9de5a5dc 100644 --- a/dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs +++ b/dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs @@ -585,7 +585,12 @@ public string AbsolutePath private string URL { get { - return _provider == null ? String.Empty : _provider.GetUrl(_name, _fileTypeAtt, 0); + if (_provider == null) + return string.Empty; + else if (!string.IsNullOrEmpty(_url)) + return _url; + else + return _provider.GetUrl(_name, _fileTypeAtt, 0); } }