PoShPACLI icon indicating copy to clipboard operation
PoShPACLI copied to clipboard

Open-PVSafe is throwing errors, still opening the safe

Open seswho opened this issue 4 years ago • 0 comments
trafficstars

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.

seswho avatar Oct 29 '21 20:10 seswho