api creates key pair with a pub key which is empty

Bug #925745 reported by Jaydeep
6
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//{tenantId}/os-keypairs

Parameter
'public_key': ' '

Response:

{"keypair": {"public_key": " ", "user_id": "admin", "name": "testKey", "fingerprint": "ad:73:49:17:35:98:61:b0:eb:8a:68:a6:03:8e:93:2a"}}

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

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.

Changed in horizon:
assignee: nobody → Gabriel Hurley (gabriel-hurley)
milestone: none → essex-4
status: New → Invalid
Thierry Carrez (ttx)
Changed in horizon:
milestone: essex-4 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.