Red Hat Bugzilla – Bug 860202
[RFE] When template description contains some UTF-8 characters, ImageFactory fails building image with error 500.
Last modified: 2015-08-02 20:02:27 EDT
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):
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
Flash message: "Failed. Response code = 500. Response message = Internal Server Error." appears.
This looks like a good candidate for consideration in 2.0