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

Add-VSTeamAccessControlEntry allows results in a (400) bad request #538

Open
esijnja opened this issue Jul 20, 2023 · 1 comment
Open

Add-VSTeamAccessControlEntry allows results in a (400) bad request #538

esijnja opened this issue Jul 20, 2023 · 1 comment
Labels
bug when a bug has been identified or filed

Comments

@esijnja
Copy link
Contributor

esijnja commented Jul 20, 2023

Steps to reproduce

Add-VSTeamAccessControlEntry -SecurityNamespaceId $namespaceId -Token $token -Descriptor $descriptor -AllowMask $allowBits -DenyMask $denyBits 

Expected behavior

I expected that the permission is set for the subject (descriptor) with the bits maps passed.

Actual behavior?

I had the following actual outcome the call result in a (400) bad request.
The problem is that the $merge is put in the $body , this results in True or False iso true or false.

There is a unit test, but the unit test uses a -like which tests case insensitive that is why the unit test passes.

On Which OS have you tried it?

Windows

What was your server version?

Azure DevOps Services

Other server version

7.13.1

Log output of used API

Billing                     : 
Build                       : 3.0
Core                        : 3.0
DistributedTask             : 3.0-preview
DistributedTaskReleased     : 
ExtensionsManagement        : 3.0-preview
Git                         : 3.0
Graph                       : 
HierarchyQuery              : 
MemberEntitlementManagement : 
Packaging                   : 3.0-preview
Pipelines                   : 
Policy                      : 3.0
Processes                   : 
Release                     : 3.0-preview
ServiceEndpoints            : 3.0-preview
TaskGroups                  : 3.0-preview
Tfvc                        : 3.0
VariableGroups              : 
Version                     : TFS2017
Wiki                        : 
WorkItemTracking            : 3.0

Log output of $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.6
PSEdition                      Core
GitCommitId                    7.3.6
OS                             Microsoft Windows 10.0.17763
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
@esijnja esijnja added the bug when a bug has been identified or filed label Jul 20, 2023
@SebastianSchuetze
Copy link
Collaborator

Thanks for catching this. 🙏 I will review the PR and run the build.

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