| Summary: | [REST API] Wrong response message/text when adding a cartridge | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Xavier Coulon <xcoulon> |
| Component: | Pod | Assignee: | Lili Nader <lnader> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.x | CC: | adietish, bmeng, mfisher, rmillner |
| 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:32:58 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
<messages>
<message>
<text>Added mysql-5.1 to application xyz</text>
<field nil="true"></field>
<severity>info</severity>
<exit-code nil="true"></exit-code>
</message>
<message>
<text>
MySQL 5.1 database added. Please make note of these credentials:
Root User: admin
Root Password: wNFpdr1d_haD
Database Name: xyz
Connection URL: mysql://127.1.37.129:3306/
You can manage your new MySQL database by also embedding phpmyadmin-3.4.
</text>
<field>result</field>
<severity>info</severity>
<exit-code>0</exit-code>
</message>
<message>
<text>Connection URL: mysql://127.1.37.129:3306/
</text>
<field>appinfo</field>
<severity>info</severity>
<exit-code>0</exit-code>
</message>
</messages>
verified this bug on devenv_1672, issue has been fixed. |
The response message is : "Added #<RestCartridge:0x7ffd56767518> to application sample" Moreover, this message does not contain the credentials anymore, so the user cannot get them at all (except by connecting via ssh and display the environment variables) <?xml version="1.0" encoding="UTF-8"?> <response> <cartridge> <name>mysql-5.1</name> <links> <link> <rel>Get embedded cartridge</rel> <href>/domains/foobar/applications/sample/cartridges/mysql-5.1</href> <optional-params/> <method>GET</method> <required-params/> </link> <link> <rel>Stop embedded cartridge</rel> <href>/domains/foobar/applications/sample/cartridges/mysql-5.1/events</href> <optional-params/> <method>POST</method> <required-params> <param> <name>event</name> <description>event</description> <valid-options>stop</valid-options> <type>string</type> </param> </required-params> </link> <link> <rel>Reload embedded cartridge</rel> <href>/domains/foobar/applications/sample/cartridges/mysql-5.1/events</href> <optional-params/> <method>POST</method> <required-params> <param> <name>event</name> <description>event</description> <valid-options>reload</valid-options> <type>string</type> </param> </required-params> </link> <link> <rel>Restart embedded cartridge</rel> <href>/domains/foobar/applications/sample/cartridges/mysql-5.1/events</href> <optional-params/> <method>POST</method> <required-params> <param> <name>event</name> <description>event</description> <valid-options>restart</valid-options> <type>string</type> </param> </required-params> </link> <link> <rel>Delete embedded cartridge</rel> <href>/domains/foobar/applications/sample/cartridges/mysql-5.1</href> <optional-params/> <method>DELETE</method> <required-params/> </link> <link> <rel>Start embedded cartridge</rel> <href>/domains/foobar/applications/sample/cartridges/mysql-5.1/events</href> <optional-params/> <method>POST</method> <required-params> <param> <name>event</name> <description>event</description> <valid-options>start</valid-options> <type>string</type> </param> </required-params> </link> </links> <type>embedded</type> </cartridge> <version>1.0</version> <type>cartridge</type> <status>created</status> <messages> <message> <field nil="true"></field> <exit-code nil="true"></exit-code> <text>Added #<RestCartridge:0x7ffd56767518> to application sample</text> <severity>info</severity> </message> </messages> </response>