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

Move-TPPObject fails in try/catch #185

Closed
cmblackburn opened this issue Feb 1, 2023 · 2 comments · Fixed by #188
Closed

Move-TPPObject fails in try/catch #185

cmblackburn opened this issue Feb 1, 2023 · 2 comments · Fixed by #188
Assignees
Labels
bug Something isn't working

Comments

@cmblackburn
Copy link

When utilizing the Move-TPPObject cmdlet inside of a try/catch statement there is an error and the object will not be moved, the error states "Unable to read object details of \VED\Policy\Testing\whatever.net; ObjectDoesNotExist

Identical code outside of the try/catch statement works successfully

@gdbarron
Copy link
Collaborator

gdbarron commented Feb 1, 2023

Please provide all the details requested in the bug issue template.

@cmblackburn
Copy link
Author

Environment

Operating System:  Windows Server 2012
VenafiPS version:  5.3.1
PowerShell version:  5.1
TPP version (if applicable):  21.4

Steps to reproduce

Try{Move-Tppobject -sourcepath '\ved\policy\mycert' -targetpath '\ved\policy\yourcert'

Expected behavior

Move the object in the source path to the a new object in the traget path

Actual behavior

The object is not moved and there is an exception error stating that the target object does not exist

Screenshots

@gdbarron gdbarron self-assigned this Feb 22, 2023
@gdbarron gdbarron added the bug Something isn't working label Feb 22, 2023
@gdbarron gdbarron changed the title Unable to Move-TPPObject Move-TPPObject fails in try/catch Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants