commit | eb24769c91469a9b57344421061c8e366b8a8c2a | [log] [tgz] |
---|---|---|
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | Thu Apr 16 03:28:14 2020 -0700 |
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | Thu Apr 16 03:28:14 2020 -0700 |
tree | ed805620d0cafa0376beb495ee5aac660c0c0816 | |
parent | 18c479f0b09bb406c21c707bf7acc03fc34ef0a0 [diff] |
Fix invalid prefix check handling Should the URI prefix length in the request be incorrect and not contain two "/" the service would fail with "empty response" on client side due to unhandled "list index out of range" in the server process while trying to get the idName from pathlist[4] which throws IndexError. Prefix validation, id and class variable assignment are wrapped up in try-except clause to evaluate the prefix check correctly, catch the exception and return appropriate response to the client. Change-Id: If6333228fbdd3a8075ade55436c3ca9bb8a97caa Issue-ID: INT-1529 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Responsible for the integration framework / automated tools, code and scripts, best practice guidance related to cross-project Continuous System Integration Testing (CSIT), and delivery of the ONAP project.
See https://wiki.onap.org/display/DW/Integration+Project for additional details.
See respective directories for additional details about each sub-project.