Troubleshooting
Problem
You configured a rest client to POST a request to Maximo to submit an upload request for Maximo Liberty logs to be uploaded to your s3 Cloud Object Storage.
The request looks similar to the following:
- POST "https://host:port/maximo/api/service/logging?action=wsmethod:submitUploadLogRequest"
The body of the message contains no text.An api key has been generated in Maximo and configured in the request header.
Posting the request to the API again, an error response is returned to the client.
Symptom
You receive the error shown here:
{
"oslc:Error": {
"oslc:statusCode": "400",
"spi:reasonCode": "BMXAA5445E",
"oslc:message": "BMXAA5445E - No privilege for invoking method submitUploadLogRequest on LOGGING for user maxadmin.",
"oslc:extendedError": {
"oslc:moreInfo": {
"rdf:resource": "http://localhost/maximo/api/error/messages/BMXAA5445E"
}
}
}
}
{
"oslc:Error": {
"oslc:statusCode": "400",
"spi:reasonCode": "BMXAA5445E",
"oslc:message": "BMXAA5445E - No privilege for invoking method submitUploadLogRequest on LOGGING for user maxadmin.",
"oslc:extendedError": {
"oslc:moreInfo": {
"rdf:resource": "http://localhost/maximo/api/error/messages/BMXAA5445E"
}
}
}
}
Cause
Checking privileges shows they are configured correctly. The group that the user belongs to has full access to the Logging application, and the standard service authorization for the method is also granted. The error indicates that the privilege is missing in the LOGGING application, however upon further investigation, it can be seen that this option is enabled as a standard service method belonging to the TOOLSAPI application instead.
Environment
Maximo Application Suite 8.5
Maximo Manage 8.1
Diagnosing The Problem
In Application Designer, check to see whether the LOGGING application contains a signature option called GETLOG. This signature option might be missing.
In Security Groups, open your security group. From the Standard Service Authorization, check which application is associated with the method submitUploadLogRequest. The application name must be set to LOGGING rather than TOOLSAPI.
Resolving The Problem
1. Navigate to Application Designer and search for the Logging application.
2. Added new signature option called GETLOG to the logging application. Set the description to "Load logs to object storage".
3. Save the changes.
3. Navigate to Maximo Security groups and search for your security group.
4. On the applications tab, search for the Logging application and grant the new option. Save the changes.
5. From the left panel, select "Standard Service Authorization"
5. From the left panel, select "Standard Service Authorization"
6. Search the row containing the method "submitUploadLogRequest" and delete it.
7. Add a row, with the following values:
Service Method Application Option
LOGGING submitUploadLogRequest LOGGING GETLOG
LOGGING submitUploadLogRequest LOGGING GETLOG
Save the changes.
Posting the request now returns a result similar to:
{
"return": "1009-1632136746659"
}
The results show the name of the .zip file that was created from this request. The file uploaded to s3 looks similar to:
1009-1632136746659-mas-dev-all-7b447d956d-vmztp.zip
Document Location
Worldwide
[{"Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSRHPA","label":"IBM Maximo Application Suite"},"ARM Category":[{"code":"a8m50000000CbFGAA0","label":"Integration"}],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5.0","Type":"MASTER"}]
Was this topic helpful?
Document Information
Modified date:
06 December 2021
UID
ibm16490907