Hide Forgot
Description of problem: $ curl -k -X GET -H 'Accept: application/xml' --user jialiu:214214 https://ec2-107-21-165-94.compute-1.amazonaws.com/broker/rest/api ... <link> <optional-params/> <required-params> <param> <valid-options/> <name>namespace</name> <description>Name of the domain</description> <type>string</type> </param> </required-params> <method>POST</method> <href>https://ec2-107-21-165-94.compute-1.amazonaws.com/broker/rest/domains</href> <rel>Create new domain</rel> </link> ... The above instruction is not correct, parameter should be "id", not "namespace". $ curl -k -X POST -H 'Accept: application/xml' -d namespace=jialiu --user jialiu:214214 https://ec2-107-21-165-94.compute-1.amazonaws.com/broker/rest/domains <?xml version="1.0" encoding="UTF-8"?> <response> <data> <datum nil="true"></datum> </data> <type nil="true"></type> <version>1.0</version> <messages> <message> <exit-code>106</exit-code> <field>namespace</field> <text>Namespace is required and cannot be blank.</text> <severity>error</severity> </message> </messages> <status>unprocessable_entity</status> </response> BTW, alter domain parameter should be also be updated. $ curl -k -X GET -H 'Accept: application/xml' --user jialiu:214214 https://ec2-107-21-165-94.compute-1.amazonaws.com/broker/rest/domains ... <link> <optional-params/> <required-params> <param> <valid-options/> <name>namespace</name> <description>Name of the domain</description> <type>string</type> </param> </required-params> <method>PUT</method> <href>https://ec2-107-21-165-94.compute-1.amazonaws.com/broker/rest/domains/newjialiu</href> <rel>Update domain</rel> </link> ... Version-Release number of selected component (if applicable): devenv_1705 How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Fixed in git rev 45fa437d090021343
Verify this bug with devenv_1715, and PASS.