SOI - After installing CU5, setting user and groups via REST does not work
search cancel

SOI - After installing CU5, setting user and groups via REST does not work

book

Article ID: 277371

calendar_today

Updated On:

Products

CA Service Operations Insight (SOI)

Issue/Introduction


After Installing SOI CU5 you cannot create or move users using RESP API. The following errors are visible: 
 
Example for moving user <test> to group Read-Only:
 
POST https://<hostname>/rest/group/Read-Only/user?format=xml
Content: <ids><id>https://<hostname>/rest/user/<test>/entry</id></ids>
 
Response :
<error>
                <message>Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('https://<hostname>/rest/user/<test>/entry') at [Source: (PushbackInputStream); line: 1, column: 61] (through reference chain: com.ca.soi.accesslayer.sdk.Ids["id"])</message>
                <detail>Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('https://<hostname>/rest/user/<test>/entry') at [Source: (PushbackInputStream); line: 1, column: 61] (through reference chain: com.ca.soi.accesslayer.sdk.Ids["id"])</detail>
</error>

Environment

SOI CU5

Rest API 

Cause

The rest framework has been changed but documentation was not up to date.

Resolution

The new post should look like this:

 

POST Url - https://<hostname>/rest/group/TestAdmin/user

Request XML - 

<ids>
    <id>
        <id>https://<hostname>/rest/user/soiuser/entry</id>
    </id>
</ids>

We already updated the rest docs with SOI URL rest document.

https://<SOI-UIHost>:7403/rest/docs/rest/resource_RootResource.html#resource_RootResource_GroupResource_createGroup_POST