-
Bug
-
Resolution: Done
-
Medium
-
Dublin Release
-
None
-
CMCC LAB (MR01)
Below exception come up while request “Create E2E service instance V5” incoming:
2019-01-30T08:35:37.521Z|96f94a07-3b57-444b-a0ef-90906274e55c| org.onap.so.apihandlerinfra.E2EServiceInstances - Validation failed: 2019-01-30T08:35:37.521Z|96f94a07-3b57-444b-a0ef-90906274e55c| org.onap.so.apihandlerinfra.E2EServiceInstances - Validation failed: org.onap.so.apihandlerinfra.exceptions.ValidateException: Error parsing request: No valid requestorId is specified at org.onap.so.apihandlerinfra.exceptions.ValidateException$Builder.build(ValidateException.java:39) at org.onap.so.apihandlerinfra.E2EServiceInstances.parseRequest(E2EServiceInstances.java:1210) at org.onap.so.apihandlerinfra.E2EServiceInstances.processE2EserviceInstances(E2EServiceInstances.java:716) at org.onap.so.apihandlerinfra.E2EServiceInstances.createE2EServiceInstance(E2EServiceInstances.java:123)
Analysis shows below:
so\mso-api-handlers\mso-api-handler-infra\src\main\java\org\onap\so\apihandlerinfra\MsoRequest.java
line 164:
ValidationInformation info = new ValidationInformation(sir, instanceIdMap, action,
reqVersion, aLaCarteFlag, requestParameters); // no requestorId is specified here, and ValidationInformation can't create it for itself
line 176:
rules.add(new RequestInfoValidation()); // RequestInfoValidation is added
so\mso-api-handlers\mso-api-handler-infra\src\main\java\org\onap\so\apihandlerinfra\validation\RequestInfoValidation.java
line 44:
if(empty(requestInfo.getRequestorId()) && reqVersion >= 4) {
throw new ValidationException ("requestorId"); // while reqVersion >= 4, an exception will throw if no requestId is specified, and it seems that it would always happen.
}