Bug 860202 - [RFE] When template description contains some UTF-8 characters, ImageFactory fails building image with error 500.
Summary: [RFE] When template description contains some UTF-8 characters, ImageFactory ...
Keywords:
Status: CLOSED EOL
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: imagefactory
Version: 1.1.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
Assignee: Nobody
QA Contact: Rehana
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-25 09:12 UTC by Milan Falešník
Modified: 2020-03-27 19:02 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:02:06 UTC
Embargoed:


Attachments (Terms of Use)
imagefactory.log log file. Grep for UnicodeDecodeError (62.50 KB, application/octet-stream)
2012-09-25 09:12 UTC, Milan Falešník
no flags Details

Description Milan Falešník 2012-09-25 09:12:27 UTC
Created attachment 616926 [details]
imagefactory.log log file. Grep for UnicodeDecodeError

Description of problem:
Thanks to my little deviation with writing everything possible in Czech, I found this bug. ImageFactory probably does not properly handle foreign characters in Katello's template description. The description was: "Testovací RHEL5 server s make" (RHEL5 server with make for testing). Build failed with Error 500. When I looked into imagefactory.log, it failed with "UnicodeEncodeError: 'ascii' codec can't encode characters...". When I copy-pasted the unicode character, it was the 'í' from the description. It does that with RHEV-M, but I have no other providers available now. So don't know whether it's provider-specific, but it seems to me that not.

Version-Release number of selected component (if applicable):
imagefactory-1.0.2-1.el6cf.noarch
aeolus-all-0.13.14-1.el6cf.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create system template in Katello, set its description that way that it contains some non-english letters (either something asian or just accented latin, you can try copy-pasting some of Czech accented letters: ěščřžýáíéúůďťň. I tested it also with Japanese characters, same result)
2. Save the template, download it into your computer
3. Create a new image in Aeolus from that template
4. Try to build the image
  
Actual results:
Flash message: "Failed. Response code = 500. Response message = Internal Server Error." appears.

Expected results:
Normal build

Additional info:

Comment 2 Mike Orazi 2012-09-25 21:22:35 UTC
This looks like a good candidate for consideration in 2.0


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