Bug 811852

Summary: Exception on conductor when tried to create a new image from wrong URL
Product: [Retired] CloudForms Cloud Engine Reporter: Rehana <redakkan>
Component: aeolus-conductorAssignee: Jozef Zigmund <jzigmund>
Status: CLOSED ERRATA QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, asettle, deltacloud-maint, dmacpher, hbrock, juwu, slinaber, ssachdev
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
When trying to create a new image or Application Blueprint in Conductor using a wrong URL, the wrong error message was returned. This bug fix updates application_controller.rb to display the appropriate error message: "Provided URL is not valid"
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 15:03:21 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:
Embargoed:
Attachments:
Description Flags
ss1
none
Rails log
none
validation none

Description Rehana 2012-04-12 06:41:16 UTC
Created attachment 576967 [details]
ss1

Description of problem:


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


How reproducible:


Steps to Reproduce:
1.login to conductor
2.Go to "clouds" --> new image --> from URL
3.Issue the URL with a semicolon instead of colon 

ex:http;//hp-z600-01.rhts.eng.bos.redhat.com/rhel62vmtools
  
Actual results:

got an error on conductor:"undefined method `request_uri' for #<URI::Generic:0x7fb611605c60>" (PFA: rails.log, ss1.png) 

Expected results:
should show appropriate error message

Additional info:

rpm -qa| grep aeolus
aeolus-conductor-0.8.7-1.el6.noarch
aeolus-configure-2.5.2-1.el6.noarch
aeolus-conductor-daemons-0.8.7-1.el6.noarch
rubygem-aeolus-image-0.3.0-12.el6.noarch
rubygem-aeolus-cli-0.3.1-1.el6.noarch
aeolus-all-0.8.7-1.el6.noarch
aeolus-conductor-doc-0.8.7-1.el6.noarch

Comment 1 Rehana 2012-04-12 06:42:00 UTC
Created attachment 576969 [details]
Rails log

Comment 2 Rehana 2012-04-12 12:34:55 UTC
This is also occurring when tried to create application blueprint with same url
http;//hostname/filename

Comment 3 Jozef Zigmund 2012-08-23 15:57:27 UTC
Bugfix has been sent to the aeolus-devel mailing list:

https://lists.fedorahosted.org/pipermail/aeolus-devel/2012-August/012285.html

Comment 4 Jozef Zigmund 2012-09-06 16:17:49 UTC
Bugfix pushed in master with commit #90d951e4ae2a3eff3e8d5768b5927ef027a4b805 and to 1.1 branch with commit # ce955791f387d7f90f662448a152d6895ff9c4c1

Comment 5 Steve Linabery 2012-09-07 21:50:16 UTC
in build aeolus-conductor-0.13.3-1.el6cf

Comment 7 Aziza Karol 2012-09-20 12:38:03 UTC
"Provided URL is not valid http;//hp-z600-01.rhts.eng.bos.redhat.com/rhel62vmtools"  is displayed if an image is created with an invalid url.
see attached screenshot.

verified:
rpm -qa | grep aeolus
rubygem-aeolus-image-0.3.0-12.el6.noarch
aeolus-conductor-daemons-0.13.8-1.el6cf.noarch
rubygem-aeolus-cli-0.7.1-1.el6cf.noarch
aeolus-conductor-doc-0.13.8-1.el6cf.noarch
aeolus-configure-2.8.6-1.el6cf.noarch
aeolus-all-0.13.8-1.el6cf.noarch
aeolus-conductor-0.13.8-1.el6cf.noarch

Comment 8 Aziza Karol 2012-09-20 12:38:45 UTC
Created attachment 614875 [details]
validation

Comment 10 errata-xmlrpc 2012-12-04 15:03:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2012-1516.html