Bug 805963 - [REST API] Invalid 'optional-value' element data
Summary: [REST API] Invalid 'optional-value' element data
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Lili Nader
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-22 14:52 UTC by Xavier Coulon
Modified: 2015-05-15 01:48 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description Xavier Coulon 2012-03-22 14:52:48 UTC
The 'delete domain' operation has an optional value named 'force', but the 'valid values' is given as a single 'true or false' value instead of 2 values 'true' and 'false':

     <link>
        <rel>Delete domain</rel>
        <href>/domains/foobar</href>
        <optional-params>
          <optional-param>
            <default-value>false</default-value>
            <name>force</name>
            <description>Force delete domain.  i.e. delete any applications under this domain</description>
            <valid-options>true or false</valid-options>
            <type>boolean</type>
          </optional-param>
        </optional-params>
        <method>DELETE</method>
        <required-params/>
      </link>

Comment 1 Johnny Liu 2012-03-27 07:46:29 UTC
Verified this bug with devenv_1674, and PASS.
$ curl -k -X GET -H 'Accept: application/xml' --user jialiu:xx https://ec2-23-20-26-98.compute-1.amazonaws.com/broker/rest/domains
...
        <link>
          <rel>Delete domain</rel>
          <method>DELETE</method>
          <href>/domains/jialiu</href>
          <optional-params>
            <optional-param>
              <valid-options>
                <valid-option>true</valid-option>
                <valid-option>false</valid-option>
              </valid-options>
              <default-value>false</default-value>
              <name>force</name>
              <description>Force delete domain.  i.e. delete any applications under this domain</description>
              <type>boolean</type>
            </optional-param>
          </optional-params>
          <required-params/>
        </link>
...


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