Skip to content

Unable to add/save standalone AM due to incomplete AM version #457

@spetrov

Description

@spetrov

Frodo Library version

Provide output of getVersion or us the CLI to get the version frodo -v

stoyan.petrov@mac-N447G0G7 forgeops-sdks-utils % frodo -v                                                                             
You are running the homebrew release.
cli: v2.0.6-2
lib: v2.1.2-0
node: v20.11.1

Describe the issue

Trying to add/save a new connection to a standalone local AM instance fails, when AM version info is incomplete.

@atomicsamurai found that frodo fails to parse the version returned from this call:

stoyan.petrov@mac-N447G0G7 forgeops-sdks-utils % curl -X GET -H "Accept:application/json, text/plain, */*" -H "Content-Type:application/json" -H "User-Agent:@rockcarver/frodo-lib/2.1.2-0"  -H "Accept-API-Version:resource=1.0" -H "Cookie:iPlanetDirectoryPro=<***COOKIE***>" "https://localam.petrov.ca/openam/json/serverinfo/version"
{"_id":"version","_rev":"150280414","version":"ForgeRock Access Management","fullVersion":"ForgeRock Access Management","revision":"DEV","date":"DEV"}% 

This causes the frodo conn add command to fail - e.g:

stoyan.petrov@mac-N447G0G7 forgeops-sdks-utils % frodo conn add https://localam.petrov.ca/openam amadmin password 
Error getting tokens
  Cannot read properties of null (reading '0') 

More details here: https://pingidentity.slack.com/archives/C03CL5A79NE/p1727193772869339

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions