Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1055906

Summary: Should prompt warning message when user add cartridge using invalid url before clicking at "Add Cartridge"
Product: OpenShift Online Reporter: Tian Feng <tfeng>
Component: WebsiteAssignee: Clayton Coleman <ccoleman>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.xCC: jliggitt, wsun, xtian, yujzhang
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-26 19:09:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tian Feng 2014-01-21 08:18:55 UTC
Description of problem:
Go to web console and then try to add a cartridge using invalid url. When I input "blahblah" in the text field, then click at the link "blahblah", it will direct to console/application/<uuid>-<app_name>/cartridge_type/blahblah, which is not existed. And fail to add cartridge. It should warn user before user add this cartridge.

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

How reproducible:

Steps to Reproduce:
1. Go to web console
2. Input "blahblah" when adding cartridge via url. Then click at link "blahblah" and see the result. Click at "Add Cartridge" to try to add cartridge.

Actual results:
Click at link for "blahblah" will point to 404 page. Will not add cartridge. No warning prompts.

Expected results:
It should warn user the url is invalid.

Additional info:

Comment 1 Jordan Liggitt 2014-01-23 19:16:50 UTC
For urls without a protocol, we'll just assume http and try it.

Will merge in

Comment 2 openshift-github-bot 2014-01-23 19:49:56 UTC
Commits pushed to master at
Fix bug 1055906: Add http:// to cartridge url if no scheme provided
Merge pull request #4570 from liggitt/bug_1055906_downloadable_cartridge_scheme

Fix bug 1055906: Add http:// to cartridge url if no scheme provided

Comment 3 Yujie Zhang 2014-01-24 05:41:25 UTC
Tested on devenv_4269, the http:// will be added for urls without a protocol now, so verify this bug, thanks.