Bug 806323

Summary: [REST API] obsolete link to itself in response to user
Product: OKD Reporter: Andre Dietisheim <adietish>
Component: PodAssignee: Lili Nader <lnader>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.xCC: mfisher, mpatel, xcoulon, xtian
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-04-13 18:34:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andre Dietisheim 2012-03-23 12:46:32 UTC
If you GET on the url to the user resource you'll get a link in the response, that points to itself:

curl -k -H "Accept: application/xml" --user "adietish:PASSWORD" https://openshift.redhat.com/broker/rest/user -v


<response>
  <type>user</type>
  <messages/>
  <user>
    <login>adietish</login>
    <links>
    ...
      <link>
        <rel>Get user information</rel>
        <optional-params/>
        <href>/user</href>
        <required-params/>
        <method>GET</method>
      </link>

Comment 1 Lili Nader 2012-04-09 19:51:39 UTC
removed link

Comment 2 Xiaoli Tian 2012-04-12 10:36:06 UTC
Tested it on devenv-stage_166, /user link is removed, only have the following links :

<href>https://ec2-23-20-212-221.compute-1.amazonaws.com/broker/rest/user/keys</href>
          <optional-params/>
          <method>POST</method>
        </link>
        <link>
          <rel>Get SSH keys</rel>
          <required-params/>
          <href>https://ec2-23-20-212-221.compute-1.amazonaws.com/broker/rest/user/keys</href>
          <optional-params/>
          <method>GET</method>