-
Bug
-
Resolution: Unresolved
-
High
-
None
-
Amsterdam Release
-
None
When selecting "Create new service instance" the steps to select the customer worked and the service vFW and vLB were presented.
When the vFW was selected and confirm pressed then the window stopped and the message
" Status:Fetching service catalog from AAI. Please wait" was presented
In the console there was the message
angular.js:10071 TypeError: Cannot read property 'inventory-response-item' of undefined
at VM3818 aaiSubscriberController.js:161
at VM3834 aaiService.js:411
at wrappedCallback (VM3552 angular.js:11572)
at wrappedCallback (VM3552 angular.js:11572)
at VM3552 angular.js:11658
at Scope.$eval (VM3552 angular.js:12701)
at Scope.$digest (VM3552 angular.js:12513)
at Scope.$apply (VM3552 angular.js:12805)
at done (VM3552 angular.js:8378)
at completeRequest (VM3552 angular.js:8592)
When I manually entered the named query I got the response below.
curl -k --user VID:VID -H "Accept: application/json" -H "Content-Type: application/json" -H "X-TransactionId: AFR" -H "X-FromAppId: AFR" -d '{"instance-filters":{"instance-filter":[\{"customer":\{"global-customer-id":"Demonstration"},"service-subscription":\{"service-type":"vFW"}}]},"query-parameters":{"named-query":{"named-query-uuid":"6e806bc2-8f9b-4534-bb68-be91267ff6c8"}}}' https://aai.api.simpledemo.openecomp.org:8443/aai/search/named-query | jq .
{
"inventory-response-item": [
{
"extra-properties": {},
"service-subscription": {
"resource-version": "1507037793432",
"service-type": "vFW"
}
}
]
}
In the code of aaiSubscriberController.js:
...
AaiService.getServiceModelsByServiceType(namedQueryId,globalCustomerId,$scope.serviceTypeName,function(response) { // success
$scope.services = [];
if (angular.isArray(response.data['inventory-response-item'])) {
wholeData = response.data['inventory-response-item'][0]['inventory-response-items']['inventory-response-item'];
$scope.services = $scope.filterDataWithHigerVersion(response.data['inventory-response-item'][0]['inventory-response-items']['inventory-response-item']);
...
It looks like the structure of the data expected back is different i.e the is no "inventory-response-items"