Skip to content

Commit 503e144

Browse files
The 'GetURL' method of the external file did not take into consideration the URL (which has specific attributes such as expiration time) (#898)
1 parent 570544a commit 503e144

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,12 @@ public string AbsolutePath
585585
private string URL
586586
{
587587
get {
588-
return _provider == null ? String.Empty : _provider.GetUrl(_name, _fileTypeAtt, 0);
588+
if (_provider == null)
589+
return string.Empty;
590+
else if (!string.IsNullOrEmpty(_url))
591+
return _url;
592+
else
593+
return _provider.GetUrl(_name, _fileTypeAtt, 0);
589594
}
590595
}
591596

0 commit comments

Comments
 (0)