Uploaded image for project: 'Service Orchestrator'
  1. Service Orchestrator
  2. SO-1439

Exception "No valid requestorId is specified" on E2EServiceInstances.parseRequest while UUI input is V5

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Istanbul Release
    • 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.
      }

       

            hyu2010 hyu2010
            sonicke sonicke
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: