thycotic-ps / thycotic.secretserver

PowerShell module for automating with Thycotic Secret Server REST API
https://thycotic-ps.github.io/thycotic.secretserver
MIT License
68 stars 22 forks source link

Get-TssSecretField returns field value enclosed in quotes #279

Closed peetrike closed 1 year ago

peetrike commented 2 years ago

Verified issue does not already exist?

Yes

What error did you receive

Get-TssSecretField -TssSession $session -Id 12345 -Slug fieldslug
"some notes"

Please run the command using -Verbose

VERBOSE: Command invocation: Get-TssSecretField -TssSession:TssSessionObject -Id:System.Int32[] -Slug:fieldslug -Verbose:True
VERBOSE: Performing the operation GET https://server/SecretServer/winauthwebservices/api/v1/secrets/12345/fields/notes with:

"some notes"

### Provide a test case or steps to reproduce

```powershell
Get-TssSecretField -TssSession $session -Id 12345 -Slug fieldslug

Expected behavior

The field content should be returned as is, not with added quotes.

What Edition of Secret Server?

Platinum

What version of Secret Server

11.0

What PowerShell host was used when producing this error

Windows PowerShell (powershell)

PowerShell Host Version

The same result is both in PowerShell 7 and Windows PowerShell 5.1

tylerezimmerman commented 1 year ago

@peetrike can you confirm that this issue is resolved?

peetrike commented 1 year ago

yes, now the result is without quotes