-
Bug
-
Resolution: Done
-
Medium
-
Dublin Release
-
None
Upon homing with the following request we get a local variable referenced before assignment in HAS:
2019-05-28T18:51:15.340Z|940dbc6c-4719-45c7-85da-ef1176ad0b4a| org.onap.so.bpmn.common.scripts.OofHoming - OOF Request is: {
"requestInfo":
,
"placementInfo": {
"requestParameters":
, "subscriberInfo":
{ "globalSubscriberId": "", "subscriberName": "", "subscriberCommonSiteId": "" },
"placementDemands": [
{
"resourceModuleName": "HpaVf0",
"serviceResourceId": "ceb8e5df-b8f0-4313-b848-72858def9d6c",
"tenantId": "null",
"resourceModelInfo":
}
]
},
"serviceInfo": {
"serviceInstanceId": "4a288e74-f053-43c0-973b-241eca0e0d81",
"serviceName": "vFW",
"modelInfo":
}
}
2019-05-28T18:51:15.342Z|940dbc6c-4719-45c7-85da-ef1176ad0b4a| org.onap.so.bpmn.common.scripts.OofHoming - Posting to OOF Url: https://oof.api.simpledemo.onap.org:8698/api/oof/v1/placement
2019-05-28T18:51:15.348Z|940dbc6c-4719-45c7-85da-ef1176ad0b4a| o.o.so.logging.jaxrs.filter.PayloadLoggingFilter - Making POST request to: https://oof.api.simpledemo.onap.org:8698/api/oof/v1/placement
2019-05-28T18:51:31.350Z|ad467742-f342-499a-994b-cc5e83b9f6ab| org.onap.so.bpmn.common.scripts.OofHoming - OOF Async Callback Response is: "{\"externalApplicationDetails\": {\"responseMessage\": {\"plans\": [{\"name\": \"940dbc6c-4719-45c7-85da-ef1176ad0b4a\", \"links\": [[
{\"rel\": \"self\", \"href\": \"https:// oof-has-api:8091/v1/plans/c9a2e436-a7e4-4a89-8029-626d7afca1eb\"}]], \"message\": \"local variable 'triage_data_trans' referenced before assignment\", \"status\": \"error\", \"id\": \"c9a2e436-a7e4-4a89-8029-626d7afca1eb\"}]}, \"httpStatusCode\": 200, \"url\": \"https://oof-has-api:8091/v1/plans/c9a2e436-a7e4-4a8 9-8029-626d7afca1eb\", \"httpMethod\": \"GET\"}, \"serviceException\": {\"text\": \"A request exception has occurred when contacting an external system\", \"errorType\": \"InterfaceError\"}}"
I assume there is some data missing and that is why this error comes from HAS. However we should not get a 'local variable 'triage_data_trans' referenced before assignment'. Error description and handling of the variable should be improved so that unassigned variables are not referenced and a helpful error is returned to OSDF.
- mentioned in
-
Page Loading...