aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-08-10 18:40:43 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-08-10 18:40:43 +0300
commited3a77f6c890c6e232bb154418e2fdfb08c83dcf (patch)
tree1640f82fae00b2cadb6d7ca35c5567ee4b7ce6ab /Software/Visual_Studio
parent5d986cbb98554e10f3f1ad18349ce5a7349745c1 (diff)
downloadTango-ed3a77f6c890c6e232bb154418e2fdfb08c83dcf.tar.gz
Tango-ed3a77f6c890c6e232bb154418e2fdfb08c83dcf.zip
Fixed issue with remote upgrade and PPC file system access conflict in permissions...
Diffstat (limited to 'Software/Visual_Studio')
-rw-r--r--Software/Visual_Studio/FSE/Tango.FSE.Common/FileSystem/IFileSystemProvider.cs3
-rw-r--r--Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs14
2 files changed, 13 insertions, 4 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/FileSystem/IFileSystemProvider.cs b/Software/Visual_Studio/FSE/Tango.FSE.Common/FileSystem/IFileSystemProvider.cs
index 9f54b6958..a97a44f81 100644
--- a/Software/Visual_Studio/FSE/Tango.FSE.Common/FileSystem/IFileSystemProvider.cs
+++ b/Software/Visual_Studio/FSE/Tango.FSE.Common/FileSystem/IFileSystemProvider.cs
@@ -66,9 +66,10 @@ namespace Tango.FSE.Common.FileSystem
/// </summary>
/// <param name="localSourcePath">The local source path.</param>
/// <param name="remotePath">The remote destination path.</param>
+ /// <param name="forRemoteUpgrade">Indicates whether this upload operation is performed for a remote upgrade.</param>
/// <returns></returns>
/// <exception cref="System.IO.FileNotFoundException">Could not locate the local file or directory to upload.</exception>
- Task<FileSystemHandler> Upload(String localSourcePath, String remotePath);
+ Task<FileSystemHandler> Upload(String localSourcePath, String remotePath, bool forRemoteUpgrade = false);
/// <summary>
/// Copies the specified remote file or folder to the specified target remote folder.
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs b/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs
index b623200d8..6673a5ae3 100644
--- a/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs
+++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs
@@ -554,11 +554,19 @@ namespace Tango.FSE.UI.FileSystem
/// </summary>
/// <param name="localSourcePath">The local source path.</param>
/// <param name="remotePath">The remote destination path.</param>
+ /// <param name="forRemoteUpgrade">Indicates whether this upload operation is performed for a remote upgrade.</param>
/// <returns></returns>
- /// <exception cref="System.IO.FileNotFoundException">Could not locate the local file or directory to upload.</exception>
- public Task<FileSystemHandler> Upload(String localSourcePath, String remotePath)
+ /// <exception cref="FileNotFoundException">Could not locate the local file or directory to upload.</exception>
+ public Task<FileSystemHandler> Upload(String localSourcePath, String remotePath, bool forRemoteUpgrade = false)
{
- AuthenticationProvider.ThrowIfNoPermission(Permissions.FSE_PPCFileSystemWrite);
+ if (!forRemoteUpgrade)
+ {
+ AuthenticationProvider.ThrowIfNoPermission(Permissions.FSE_PPCFileSystemWrite);
+ }
+ else
+ {
+ AuthenticationProvider.ThrowIfNoPermission(Permissions.FSE_RemoteUpgradeOnline);
+ }
String operationId = String.Empty;
String destination = remotePath;