Skip to content

Commit

Permalink
[ADLS] Account APIs object refactor and couple of bugfixes (#4046)
Browse files Browse the repository at this point in the history
* [CODE GEN] ADLS

* Removed ErrorDetails.cs -- it was unused
* Account to Accounts for operations
* Explicit parameter objects for creation and update

* [CODE GEN] Metadata

* Fixing custom code for file rename

* Updating tests

* Account refactor
* Permission field of AclStatus from int to string

* Updating tests

* Updating SessionRecords

* [VERSION] 2.3.3-preview to 2.4.0-preview

* [CHANGELOG] Update

* ADLS metadata update

* ADLA metadata update
  • Loading branch information
ro-joowan authored and shahabhijeet committed Feb 10, 2018
1 parent fcc9524 commit 5d865e5
Show file tree
Hide file tree
Showing 68 changed files with 4,106 additions and 2,833 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1079,9 +1079,9 @@ public void DataLakeStoreDownloadUploadFileAndFolder()
#region helpers
internal AclStatusResult GetFullAcl(AclStatusResult acl)
{
if(acl.AclStatus.Entries != null && acl.AclStatus.Permission.HasValue && acl.AclStatus.Permission.Value.ToString().Length >= 3)
if (acl.AclStatus.Entries != null && !string.IsNullOrEmpty(acl.AclStatus.Permission) && acl.AclStatus.Permission.Length >= 3)
{
var permissionString = acl.AclStatus.Permission.Value.ToString();
var permissionString = acl.AclStatus.Permission;
var permissionLength = permissionString.Length;
var ownerOctal = permissionString.ElementAt(permissionLength - 3).ToString();
var groupOctal = permissionString.ElementAt(permissionLength - 2).ToString();
Expand Down
Loading

0 comments on commit 5d865e5

Please sign in to comment.