Bug 922689 - No error message shown when user tried to add non-supported cartridges to app via website.
Summary: No error message shown when user tried to add non-supported cartridges to app...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Website
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: ---
Assignee: Fotios Lindiakos
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-18 10:11 UTC by Mengjiao Gao
Modified: 2015-05-15 01:20 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-02 13:46:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
development.log from /var/log/openshift/site/ (6.53 KB, text/x-log)
2013-03-18 10:11 UTC, Mengjiao Gao
no flags Details

Description Mengjiao Gao 2013-03-18 10:11:24 UTC
Created attachment 711851 [details]
development.log from /var/log/openshift/site/

Description of problem:
When adding non-supported cartridge to apps via website,(such like: adding cartridge jenkins-client to apps without jenkins server created, or adding switchyard to non-jboss app, or adding phpmyadmin, rockmongo, cron to scalable apps) , cartridges should not be added successfully, and user should see the error message. But on devenv_2957, no error message cannot be shown in the cartridge adding page.

Version-Release number of selected component (if applicable):
devenv_2957

How reproducible:
always

Steps to Reproduce:
1.Go to website and login with a new user
2.Create a php application.
3.Try to add cartridge "switchyard" or "jenkins-client" to the app

  
Actual results:
At step 3, the cartridge "switchyard" or "jenkins-client" cannot be added to the app.
When user tried to add these two cartridge, the cartridge adding page will always return to itself again.And no error message shown in the page.

Expected results:
User shoulded not add these two cartridges to the php app, but the error message should shown as:"Invalid cartridge. Jenkins server does not exist! Please create with rhc app create -t jenkins-1.4 ", or "Invalid cartridge. SwitchYard is only supported for JBoss AS/EAP ".

Additional info:
Have tried this issue on PROD and STG, not found the bug.
And have tried this via CLI , error message will be shown correctly via CLI, as follows:
----------------------------------------------------------------------------
[root@dhcp-9-249 .openshift]# rhc cartridge add jenkins-client -a eap Password: ******

Adding 'jenkins-client-1.4' to application 'eap'
Invalid cartridge. Jenkins server does not exist!  Please create with rhc app create -t
jenkins-1.4
----------------------------------------------------------------------------

Will attached the development.log from /var/log/openshift/site/

Comment 1 Clayton Coleman 2013-03-18 21:39:51 UTC
High severity because it's a regression - we may end up needing to hotfix this, but don't create a stage branch yet.  Looks like it's related to the duplicate errors changes.

Comment 2 Xiaoli Tian 2013-03-18 23:06:39 UTC
(In reply to comment #1)
> High severity because it's a regression - we may end up needing to hotfix
> this, but don't create a stage branch yet.  Looks like it's related to the
> duplicate errors changes.

As far as I know this bug can  not be reproduced on STG,( it works as expected in current STG), it only happens on devenv, so maybe no hot fix is needed.

Comment 3 Fotios Lindiakos 2013-03-26 20:16:41 UTC
Submitted a PR for this: https://github.com/openshift/origin-server/pull/1813

We were suppressing the cartridge error messages, but since this didn't actually have an input associated with it, we never saw the inline errors.

Comment 4 openshift-github-bot 2013-03-26 23:49:15 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/fd23cee28caa2ba58474e17b90a2db345c9b45e8
Merge pull request #1813 from fotioslindiakos/BZ922689

Bug 922689: Fix for not showing proper cartridge errors

Comment 5 Yujie Zhang 2013-03-27 07:38:09 UTC
Tested on devenv_3002, created an php application, tried to add jenkins client without jenkins server, and tried to add switchyard to php application , both will get error message to remind, thanks, verify this bug.


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