Skip to content

frodo idm import -i -f throwing null error #476

Description

@gwizdala

Frodo CLI version

Provide output of frodo -v
This issue was originally detected in 3.0.0 but is also in frodo 3.0.1

You are running the homebrew release.
cli: v3.0.1
lib: v3.0.1
node: v20.18.0

Describe the issue

A clear and concise description of what the issue is.

Historically, I could import the raw json from either a REST call or an older version of Frodo (without the metadata) into idm using the -i flag to specify the entity. However, since version 3+, I run into the following error:

frodo idm import -i alphaOrgPrivileges -f alphaOrgPrivileges.json gwiz-sandbox
Connected to https://openam-<tenant>.forgeblocks.com/am [alpha] as service account Frodo-SA-number [guid]
Cannot convert undefined or null to object

If I add the wrapping json from the new idm exports, the import with the same command works as expected.

This is a painful change as it eliminates cross-compatibility with Frodo and the platform (e.g. using REST or idm queries), and has resulted in me having to manually update JSON objects either by removing or adding the wrapper.

This also invalidates the -A command, as it is supposed to read the contents of a directory and identify the objects with or without the json metadata.

Metadata

Metadata

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