Skip to content

Getting The JSON property [alg] received an invalid type of [type] from API when using ibmsecurity.isam.aac.api_protection.definitions.update #283

@kalemontes

Description

@kalemontes

Hi,
When using the method ibmsecurity.isam.aac.api_protection.definitions.update am getting the following error from ISAM API :

HTTP Return code: 400', u'{"result":"FBTRBA241E The JSON property [enc] received an invalid type of [type]. The expected type was [[string]].
FBTRBA241E The JSON property [alg] received an invalid type of [type]. The expected type was [[string]]."}

This arrises when the oidc parameter contains enc object with null/None properties :

"enc": {
    "alg": null,
    "enabled": false,
    "enc": null
},

The issue is that when calling ibmsecurity.isam.aac.api_protection.definitions.get we get this structure when encryption on OIDC definition is disabled, for instance https://gist.github.com/kalemontes/ea196b5200bd75c67c52c71aa6f425bc

I was hoping to be able to update some properties of the Definition by getting the current Definition object, and modifying just the properties i need to update. Am using this ansible role if it helps to reproduce https://gist.github.com/kalemontes/61b9fbe34f44a14b6ec2da5320f9306b

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions