Unable to create events in with CA Spectrum REST API with custom Event ID 0xffffnnnn

Document ID : KB000056971
Last Modified Date : 06/08/2018
Show Technical Document Details
Issue:
Unable to create events in CA Spectrum with the REST API with custom Event ID 0xffffnnnn

https://<oneclick-url>/spectrum/restful/events/0xffffnnnn/model/<mhanlde>

If using any of the out of the box event id's, the event is created successfully.
Environment:
Spectrum 10.02.02.00 and under
Cause:
The REST API converts the event codes from Hexadecimal to integer in Java. In Java, an integer can have a maximum value of 2,147,483,647 (signed int 32 bit). If a user wants to convert an event code in the custom event ID range like 0xffff0002, the conversion results into a decimal value of 4,294,901,762 which is greater than the MAX integer value in JAVA.

That means the REST API will not work for events whose event codes are greater than 0x7fffffff.
Resolution:
This issue has been addressed in Spectrum 10.02.03.00 and above.
Additional Information:
NOTE: Please reference the following enhancement request posted to the Ideas portal: https://communities.ca.com/ideas/235718654