[jbosstools-issues] [JBoss JIRA] (JBIDE-13592) Openshift: Duplicated cartridge URL are shown when adding cartridge to apps

Andre Dietisheim (JIRA) jira-events at lists.jboss.org
Tue Feb 19 09:21:56 EST 2013


    [ https://issues.jboss.org/browse/JBIDE-13592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755027#comment-12755027 ] 

Andre Dietisheim commented on JBIDE-13592:
------------------------------------------

If you request to the REST service that you want to add phpmyadmin:

{code} 
curl -k -H "Accept: application/xml" --user "<USERNAME>:<PASSWORD>" https://openshift.redhat.com/broker/rest/domains/myops/applications/1360949335919/cartridges -X POST --data "name=phpmyadmin-3.4"
{code}

The REST service will repeats the URL twice:
{code}
  <messages>
    <message>
      <severity>info</severity>
      <text>Added phpmyadmin-3.4 to application 1360949335919</text>
      <exit-code nil="true"></exit-code>
      <field nil="true"></field>
    </message>
    <message>
      <severity>info</severity>
      <text>
phpMyAdmin 3.4 added.  Please make note of these MySQL credentials again:

   Root User: adminz8Fb7gP
   Root Password: KplK-sSy_5hw

URL: https://1360949335919-myops.rhcloud.com/phpmyadmin/
</text>
      <exit-code>0</exit-code>
      <field>result</field>
    </message>
    <message>
      <severity>info</severity>
      <text>URL: https://1360949335919-myops.rhcloud.com/phpmyadmin/
</text>
      <exit-code>0</exit-code>
      <field>appinfo</field>
    </message>
  </messages>
{code}

As you can see in the above excerpt of the response, the URL is reported twice. We simply concatenate the messages since there are cases where all those message fragments matter, and we have to report them all. There's not enough structural info for us to know that we can simply drop the 2nd fragment since it only holds an URL that is already contained in the 1st fragment.
IMHO this clearly is an issue that one would have to save in the backend (dont repeat yourself or provide info that would allow us to know what's in those different message framgnets).
                
> Openshift: Duplicated cartridge URL are shown when adding cartridge to apps
> ---------------------------------------------------------------------------
>
>                 Key: JBIDE-13592
>                 URL: https://issues.jboss.org/browse/JBIDE-13592
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.0.0.Final
>         Environment: devenv-stage-296
> Eclipse Juno
> JBoss OpenShift Tools - 2.4.0.Final-v20130218-1429-B116
>            Reporter: jing zh
>            Assignee: Andre Dietisheim
>            Priority: Minor
>         Attachments: JBT_addmetrics.png, JBT_addmmsagent.png, JBT_addphpmyadmin.png, JBT_addrockmongo.png
>
>
> If try to add cartridges like rockmongo, 10gen-mms-agent, phpmyadmin, duplicated URL would be displayed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list