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

Set-TppAttribute gives spurious error message when clearing custom Identity field #199

Closed
ccamacho1966 opened this issue Apr 18, 2023 · 0 comments · Fixed by #203
Closed
Assignees

Comments

@ccamacho1966
Copy link
Contributor

Set-TppAttribute generates a spurious error message (from Test-TppIdentity) when attempting to clear a custom Identity field - note that the field seems to be cleared despite the error message.

PS> $cert.Path
\VED\Policy\Certificates\etc\somecertificate

PS> Set-TppAttribute -Path $cert.Path -Attribute @{"Custom ID field"=$null} -BypassValidation

Test-TppIdentity : Cannot validate argument on parameter 'ID'. The argument is null, empty, or an element of the argument collection
contains a null value. Supply a collection that does not contain any null values and then try the command again.
At C:\Program Files\WindowsPowerShell\Modules\VenafiPS\5.4.1\Public\Set-TppAttribute.ps1:162 char:49
+ ... thisValue | Test-TppIdentity -ExistOnly -VenafiSession $VenafiSession ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Test-TppIdentity], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Test-TppIdentity

VenafiPS version 5.4.1

gdbarron pushed a commit that referenced this issue Apr 27, 2023
@gdbarron gdbarron linked a pull request Apr 27, 2023 that will close this issue
@gdbarron gdbarron self-assigned this May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants