Skip to content

Commit b8f51ec

Browse files
committed
Fix null parameter for recurse i setaclentry
1 parent 1da16cd commit b8f51ec

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

src/ResourceManager/DataLakeStore/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Fix null parameter exception for Recurse case in Set-AzureRmDataLakeStoreItemAclEntry
22+
* Fix the help files for Set-AzureRmDataLakeStoreItemAclEntry, Set-AzureRmDataLakeStoreItemAcl, Remove-AzureRmDataLakeStoreItemAclEntry
2123

2224
## Version 6.0.0
2325
* Add new feature of recursive Acl Change to Remove-AzureRmDataLakeStoreItemAclEntry, Set-AzureRmDataLakeStoreItemAclEntry, Set-AzureRmDataLakeStoreItemAcl

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/DataPlaneCommands/SetAzureRmDataLakeStoreItemAclEntry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public override void ExecuteCmdlet()
111111
{
112112
DataLakeStoreFileSystemClient.ChangeAclRecursively(Path.TransformedPath,
113113
Account,
114-
Acl.Select(entry => entry.ParseDataLakeStoreItemAce()).ToList(), RequestedAclType.ModifyAcl, Concurrency);
114+
aclSpec, RequestedAclType.ModifyAcl, Concurrency);
115115
}
116116
else
117117
{

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/help/Remove-AzureRmDataLakeStoreItemAclEntry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This command removes the user ACE for Patti Fuller from the ContosoADL account.
4141

4242
### Example 2: Remove a user entry recursively
4343
```
44-
PS C:\>Remove-AzureRmDataLakeStoreItemAclEntry -AccountName "ContosoADL" -Path / -AceType User -Id (Get-AzureRmADUser -Mail "[email protected]").ObjectId -Recursive -Concurrency 128
44+
PS C:\>Remove-AzureRmDataLakeStoreItemAclEntry -AccountName "ContosoADL" -Path / -AceType User -Id (Get-AzureRmADUser -Mail "[email protected]").ObjectId -Recurse -Concurrency 128
4545
```
4646

4747
This command removes the user ACE for Patti Fuller from the root and recursively from all it's subdirectories and files for account ContosoADL.

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/help/Set-AzureRmDataLakeStoreItemAcl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The second command sets the ACL for the file Test.txt to the one in $ACL.
3737
### Example 2: Set the ACL for folder recursively
3838
```
3939
PS C:\>$ACL = Get-AzureRmDataLakeStoreItemAcl -AccountName "ContosoADL" -Path /Folder1
40-
PS C:\> Set-AzureRmDataLakeStoreItemAcl -AccountName "ContosoADL" -Path "/Folder2" -Acl $ACL -Recursive -Concurrency 128
40+
PS C:\> Set-AzureRmDataLakeStoreItemAcl -AccountName "ContosoADL" -Path "/Folder2" -Acl $ACL -Recurse -Concurrency 128
4141
```
4242

4343
The first command gets the ACL for the directory Folder1 of the ContosoADL account, and then stores it in the $ACL variable.

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/help/Set-AzureRmDataLakeStoreItemAclEntry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This command modifies the ACE for Patti Fuller to have all permissions.
4141

4242
### Example 2: Modify permissions for an ACE recursively
4343
```
44-
PS C:\>Set-AzureRmDataLakeStoreItemAclEntry -AccountName "ContosoADL" -Path / -AceType User -Id (Get-AzureRmADUser -Mail "[email protected]").ObjectId -Permissions All -Recursive -Concurrency 128
44+
PS C:\>Set-AzureRmDataLakeStoreItemAclEntry -AccountName "ContosoADL" -Path / -AceType User -Id (Get-AzureRmADUser -Mail "[email protected]").ObjectId -Permissions All -Recurse -Concurrency 128
4545
```
4646

4747
This command recursively modifies the ACE for Patti Fuller to have all permissions to root and all its subdirectories and files.

0 commit comments

Comments
 (0)