certificate install returns code 200 on errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Won't Fix
|
Low
|
zhao.shuai |
Bug Description
Brief Description
-----------------
The "system certificate-
Note that the example listed below represents only a single code path in the certificate install. All errors paths need to be fixed as there are multiple examples of this problem occurring.
Severity
--------
Major
Steps to Reproduce
------------------
system certificate-install -m dummy some-cert-file.pem
Expected Behavior
------------------
Any command with invalid input should return a 400 series error to indicate that the input data is invalid.
Actual Behavior
----------------
The API request completes with a 200 return code which is an "OK" return code.
Reproducibility
---------------
100%
System Configuration
-------
Any
Branch/Pull Time/Commit
-------
2019-04-24
Last Pass
---------
unknown
Timestamp/Logs
--------------
This is the verbose/debug output from running the command listed in the steps to reproduce. Note the "200" response at the end of the POST line.
DEBUG (connectionpool
Certificate vbox-aio.pem not installed: Invalid mode: dummy
Test Activity
-------------
Developer Testing
tags: | added: stx.config |
Changed in starlingx: | |
assignee: | Lin Shuicheng (shuicheng) → zhao.shuai (zhao.shuai) |
While this issue does not gate the stx.2.0 release, the error paths in the code should be cleaned up to provide a proper error reason.
Adding stx.helpwanted tag. This would be a good candidate for a newer community member to take on.