Bug 815699

Summary: Can add duplicate sshkey value via rhc client.
Product: OKD Reporter: yquan <yquan>
Component: ocAssignee: Clayton Coleman <ccoleman>
Status: CLOSED CANTFIX QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.xCC: rmillner, yujzhang
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-19 22:54:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot1 none

Description yquan 2012-04-24 09:53:42 UTC
Description of problem:
It can add duplicate sshkey value using rhc client.

Version-Release number of selected component (if applicable):
devenv_1738
rhc-0.91.6-1.el6_2.noarch

How reproducible:
Always.

Steps to Reproduce:
1.Create the domain via rhc client.
2.Add a sshkey.
3.Add the same sshkey again.
  
Actual results:
It can add same sshkey successfully.

Expected results:
It should return proper message such as "You have already saved this public key with a different name. Provide a different key."
And the shouldn't add the sshkey successfully.
Additional info:

Comment 1 Yujie Zhang 2012-05-08 08:16:46 UTC
Tested this issue on devenv_1761, still can add the same sshkey uisng different name in CLI, this is not allowed on website. Details see in attachment.

Comment 2 Yujie Zhang 2012-05-08 08:17:09 UTC
Created attachment 582913 [details]
screenshot1

Comment 3 Clayton Coleman 2012-06-19 22:54:40 UTC
This is because the CLI is using the old broker API.  We can't fix this until we refactor the CLI to use the new REST API.  That's going to be one or more large stories.  Until then this is CANTFIX