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

Open-PVSafe is throwing errors, still opening the safe #73

Open
seswho opened this issue Oct 29, 2021 · 0 comments
Open

Open-PVSafe is throwing errors, still opening the safe #73

seswho opened this issue Oct 29, 2021 · 0 comments

Comments

@seswho
Copy link

seswho commented Oct 29, 2021

Your issue may already be reported. Please search existing issues before creating one.

Your Environment

Windows Server 2012 R2

  • PowerShell Version: 5.1 build 14409 revision 1005
  • PoShPACLI Version: 2.1.27
  • PACLI Version: v10.10
  • CyberArk Version: v10.10

Expected Behaviour

The specified safe should open without any errors.

Current Behaviour

When using Open-PVSafe in a PowerShell script: Open-PVSafe -safe $safetoopen the following error messages are thrown:

Cannot index into a null array.
At line:137 char:5

  •                     [PSCustomObject] @{
    
  •                     ~~~~~~~~~~~~~~
    + CategoryInfo                  : InvalidOperation (:) [], RuntimeException
    + FullyQualifiedError         : NullArray 
    

Possible Solution

The errors were not displayed when using the following call:

    Open-PVSafe -safe $safetoopen -ErrorAction SilentlyContinue

Steps to Reproduce (for bug reports)

1 . attempt to open a safe using Open-PVSafe -safe without any other parameters after performing a proper the proper steps to start pacli, configure pacli, and login

Context

Create safes and populate them with test password objects to test a DBScript from CyberArk Suppor
open-pvsafe_error01
open-pvsafe_error02
open-pvsafe_error03
t.

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

No branches or pull requests

1 participant