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>
1 file changed
tree: ed805620d0cafa0376beb495ee5aac660c0c0816
  1. bootstrap/
  2. deployment/
  3. docs/
  4. documentation/
  5. S3Ptools/
  6. test/
  7. version-manifest/
  8. .coafile
  9. .gitattributes
  10. .gitignore
  11. .gitreview
  12. .readthedocs.yaml
  13. .yamllint
  14. INFO.yaml
  15. README.md
  16. tox.ini
  17. version.properties
README.md

ONAP Integration

Description

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.

Sub-projects

See respective directories for additional details about each sub-project.