Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-VSTeamAccessControlList -IncludeExtendedInfo. Cannot convert value PSCustomObject to type Hashtable #159

Closed
kardinal3000 opened this issue May 15, 2019 · 3 comments
Assignees
Labels
bug when a bug has been identified or filed

Comments

@kardinal3000
Copy link

Steps to reproduce

Get-VSTeamAccessControlList -SecurityNamespaceId "52d39943-cb85-4d7f-8fa8-c6baac873819" -IncludeExtendedInfo

Expected behavior

Extended information properties for the access control entries contained in the returned lists

Actual behavior

Exception setting "ExtendedInfo": "Cannot convert value "@{effectiveAllow=240}" to type "System.Collections.Hashtable". Error: "Cannot convert the "@{effectiveAllow=240}" value of type "System.Management.Automation.PSCustomObject" to type "System.Collections.Hashtable".""
At C:\Users\xxx\Documents\PowerShell\Modules\VSTeam\6.2.1\Classes\VSTeamAccessControlEntry.ps1:20 char:10
+          $this.ExtendedInfo = $obj.extendedInfo
+          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], SetValueInvocationException
    + FullyQualifiedErrorId : ExceptionWhenSetting

Environment data

> Get-VSTeamAPIVersion
Name                           Value
----                           -----
ExtensionsManagement           3.2-preview
MemberEntitlementManagement
DistributedTask                4.0-preview
Graph
Version                        TFS2018
ServiceFabricEndpoint          3.2
Core                           3.2
Packaging
Build                          3.2
Git                            3.2
Release                        4.0-preview
Tfvc                           3.2
> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.2.0
PSEdition                      Core
GitCommitId                    6.2.0
OS                             Microsoft Windows 10.0.16299
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
@kardinal3000 kardinal3000 changed the title Get-VSTeamAccessControlList -IncludeExtendedInfo Cannot convert value "System.Management.Automation.PSCustomObject" to type "System.Collections.Hashtable" Get-VSTeamAccessControlList -IncludeExtendedInfo. Cannot convert value PSCustomObject to type Hashtable May 15, 2019
@DarqueWarrior
Copy link
Collaborator

OK this one I can duplicate. I will see what I can do.

@DarqueWarrior DarqueWarrior added the bug when a bug has been identified or filed label May 16, 2019
@DarqueWarrior
Copy link
Collaborator

This feature was added by @MichelZ Adding him just in case he has a quick fix.

@DarqueWarrior DarqueWarrior self-assigned this May 16, 2019
@DarqueWarrior
Copy link
Collaborator

Fix is being merged now.

@DarqueWarrior DarqueWarrior mentioned this issue May 16, 2019
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug when a bug has been identified or filed
Projects
None yet
Development

No branches or pull requests

2 participants