Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 819059

Summary: When importing an image - form fields are not stripped of whitespace
Product: [Retired] CloudForms Cloud Engine Reporter: James Laska <jlaska>
Component: aeolus-conductorAssignee: Jiri Stransky <jstransk>
Status: CLOSED ERRATA QA Contact: Rehana <aeolus-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, asettle, cpelland, dajohnso, dmacpher, jturner, morazi
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
When importing an image, the form fields were not stripped of whitespace. This caused the import to fail to find a matching image UUID. The requested component outline therefore was not found on the provider. This fix trims whitespace from form fields when attempting to match component ID. Image imports are now successful.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 15:07:33 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:

Description James Laska 2012-05-04 17:33:37 UTC
Description of problem:

When importing an image, the form fields are not stripped of whitespace.  A trailing space (which isn't uncommon [see steps to reproduce]) will cause the import to fail to find a matching image UUID.

Version-Release number of selected component (if applicable):
 * aeolus-conductor-0.8.13-1.el6_2.src.rpm
 * aeolus-configure-2.5.3-1.el6.src.rpm
 * imagefactory-1.0.0rc11-1.el6.src.rpm
 * iwhd-1.5-2.el6.src.rpm
 * oz-0.8.0-5.el6.src.rpm

How reproducible:
 * happens everytime

Steps to Reproduce:
1. Double click on the image UUID from the /images/<image-id> page, copy the value into the copy/paste buffer
2. From the "/pool_families" view, select "Import image"
3. Paste the image UUID (from step#1) into the "Component Outline ID" and enter a valid "Component Outline Name"
4. Select "Continue"
  
Actual results:

* The requested component outline was not found on the provider. 

Expected results:

* When copying the image UUID in step#1, an additional space is copied.  The additional trailing whitespace cases step#4 to fail
* Conductor should trim whitespace from form fields when attempting to match a component ID

Additional info:

Comment 3 Mike Orazi 2012-08-08 16:25:59 UTC
I'd like to push this back to 1.1.0? as it is a good first bug.

Comment 4 Jiri Stransky 2012-08-09 11:45:36 UTC
Patch sent to the list: https://lists.fedorahosted.org/pipermail/aeolus-devel/2012-August/011899.html

Comment 5 Jiri Stransky 2012-08-10 07:29:54 UTC
Pushed to master in commits:
9000024877b24fb680f0af131353e5f67a87356b
a28d3d3d14d41c759fbc9c73af812dba9c8e8cac

Comment 7 Aziza Karol 2012-09-24 10:25:56 UTC
When importing an image - form fields are stripped of whitespace.
Conductor trims whitespace from form fields when attempting to match a component ID .Image import is successfull.


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

Comment 9 errata-xmlrpc 2012-12-04 15:07:33 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