Bug 806323 - [REST API] obsolete link to itself in response to user
Summary: [REST API] obsolete link to itself in response to user
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Lili Nader
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-23 12:46 UTC by Andre Dietisheim
Modified: 2015-05-15 01:49 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-13 18:34:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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>


Note You need to log in before you can comment on or make changes to this bug.