Bug 1324935
| Summary: | [REST API] Missing href field for sshpublickey | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Ilanit Stein <istein> |
| Component: | RestAPI | Assignee: | Juan Hernández <juan.hernandez> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ilanit Stein <istein> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.6.5.1 | CC: | bmcclain, bugs, fromani, mavital, oliel, oourfali, pstehlik, sbonazzo |
| Target Milestone: | ovirt-3.6.6 | Keywords: | ZStream |
| Target Release: | 3.6.6 | Flags: | rule-engine:
ovirt-3.6.z+
bmcclain: planning_ack+ juan.hernandez: devel_ack+ pstehlik: testing_ack+ |
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-30 10:53:10 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Ilanit Stein
2016-04-07 15:48:04 UTC
The missing link as a bug, and we will fix it. The different names in URL segments and in XML tags aren't a bug, and can't be fixed. The URL segment indicates the name of a relationship, in this case the relationship between the user and her SSH public keys. The XML tags are names of types of objects. For example, imagine that we want to have two relationships between users and SSH keys: one for the "current" and another one for "archived" keys. In that case the URL segments would be "currentsshpublickeys" and "archivedsshpublickeys", but the XML tag would be the same in both cases. This means that the QE testing framework needs to be prepared to deal with these differences. Oved, can you set the 3.6.z flag in this bug? For upstream bugs, either remove the 4.0, or clone manually if needed. That's what I understood in the last build meeting. Sandro - am I correct? (In reply to Oved Ourfali from comment #3) > For upstream bugs, either remove the 4.0, or clone manually if needed. > That's what I understood in the last build meeting. > > Sandro - am I correct? Correct Verified on rhevm-3.6.6.2-0.1
Now the href appear for ssh_public_key item, under ssh_public_keys
GET for
https://<engine ip address>:443/ovirt-engine/api/users/fdfc627c-d875-11e0-90f0-83df133b58cc/sshpublickeys
RESPONSE:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ssh_public_keys>
<ssh_public_key href="/ovirt-engine/api/users/fdfc627c-d875-11e0-90f0-83df133b58cc/sshpublickeys/1d8de784-e776-41f5-b537-cb3a6871c8ff" id="1d8de784-e776-41f5-b537-cb3a6871c8ff">
<content>ssh-rsa . . . </content>
<user href="/ovirt-engine/api/users/fdfc627c-d875-11e0-90f0-83df133b58cc" id="fdfc627c-d875-11e0-90f0-83df133b58cc"/>
</ssh_public_key>
</ssh_public_keys>
|