api creates key pair with a pub key which is empty
Bug #925745 reported by
Jaydeep
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Invalid
|
Undecided
|
Gabriel Hurley |
Bug Description
This should throw a 400.
-REST API
POST /v1.1//
Parameter
'public_key': ' '
Response:
{"keypair": {"public_key": " ", "user_id": "admin", "name": "testKey", "fingerprint": "ad:73:
Changed in horizon: | |
milestone: | essex-4 → none |
To post a comment you must log in.
I can't reproduce a successful response from this with current Essex releases of Horizon, Nova, etc. In the "import keypair" dialog leaving the field blank triggers a validation error, while sending just a space character gets a response from the API saying "Error Importing Keypair: Keypair data is invalid". This seems to be correct behavior to me.