Hi Shobana,
Sorry for the late response. I Check the code today and see that we may fix the bug of additionalParamForNs parameter in lcm/ns/serializers.py, but forgot to open the red comment. You can commit this change first. Best Regards, Yan 发件人: Jothi, Shobana [mailto:[email protected]] 发送时间: 2018年7月23日 20:02 收件人: [email protected] 抄送: [email protected]; Viswanath V Kumar Skand Priya; Parigi, Raghavender 主题: Fwd: VFC-965: VF-C Serialization bug Hi All, In lcm/lcm/ns/views.py , during integration testing, some serializer logic was commented as following: def post(self, request, ns_instance_id): logger.debug("Enter NSInstView::post::ns_instance_id=%s", ns_instance_id) # req_serializer = InstantNsReqSerializer(data=request.data) # if not req_serializer.is_valid(): # return Response({'error': req_serializer.errors}, # status=status.HTTP_500_INTERNAL_SERVER_ERROR) ack = InstantNSService(ns_instance_id, request.data).do_biz() because this code which is marked in red will result in error even if the request is right. In lcm/lcm/ns/vnf/view.py also few similar lines are commented out. I tried to reproduce this bug on the 1.1.0 branch by uncommenting those lines, But I am not getting error for any input. I tried out the following input formats. 1. { "locationConstraints": { "vnfProfileId": "string", "locationConstraints": { "vimid": "string", "accessinfo": { "tenant": "string" }, "accessInfo": { "tenant": "string" } } }, "additionalParamForNs": "string" } 2. Removed few attributes in the above input. 3. Changed the input string to integer and tried. ex) "vnfProfileId": "1234", to "vnfProfileId": 1234 I am getting error only when I remove some mandatory attributes, so I think it is working fine for me. Am I missing something here in reproducing the bug? Regards, Shobana Jothi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11382): https://lists.onap.org/g/onap-discuss/message/11382 Mute This Topic: https://lists.onap.org/mt/23801300/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
