uimapi / rest getalarm error for account user with alarm filter ACL

book

Article ID: 205761

calendar_today

Updated On:

Products

CA Unified Infrastructure Management On-Premise (Nimsoft / UIM) NIMSOFT PROBES DX Infrastructure Management

Issue/Introduction

When I try to get alarms using webservices_rest or uimapi while logged in with an account user with an ACL with alarm filters I'm getting a HTTP Stauts 500 error. 

http://<UMP>/rest/alarms does not retrieve any alarms (SERVER ERROR) if the ACL assigned to the user contains an alarm filter.  

 

 


Steps to Replicate:

 

1. Create an ACL and assign an alarm filter: 

 

2. Assign the ACL to an account/contact 

3. Go to

 

http://<ump_server>/rest/alarms

or to:

http://<ump_server/uimapi/docs/index.html --> alarms --> Execute Getalarms.

 

4. Log in as the account/contact user that has the ACL assigned with an alarm filter

 

And see the error:

HTTP Stauts 500 - java.lang.NoClassDefFoundError: flex/messaging/util/XMLUtil

Cause

missing jar files.

Environment

Environment: UIM 9.02, 9.2, 20.1, 20.3.1, 20.3.2

Component : UIM - WEBSERVICES_REST / UIMAPI

Resolution

1. download the 2 jar files:

"flex-messaging-common-4.7.1.jar"

"flex-messaging-core-4.7.1.jar"

2. Stop the wasp probe

3. Connect to the UMP server and copy the 2 jar files in the following folders:



Nimsoft_install_Dir\probes\service\wasp\webapps\uimapi\WEB-INF\lib



AND



Nimsoft_install_Dir\probes\service\wasp\webapps\rest\WEB-INF\lib



4. Start the UMP wasp.



5. Test if the issue is resolved:



As this issue affects both webservices_rest and uimapi the fix is for both. Now you can test:



REST:

http://rest/alarms

(While logged as the account user with the ACL that has a filter)



UIMAPI:

http://<ump_server/uimapi/docs/index.html

--> Execute Getalarms.



(While logged as the account user with the ACL that has a filter)

Additional Information

A future release of UIM 20.3.x will include this fix by default

Attachments

1609236687632__flex-messaging-core-4.7.1.jar get_app
1609236672210__flex-messaging-common-4.7.1.jar get_app