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

Bug 464784

Summary: Python UnicodeDecodeError during CDROM or Network tests in HTS
Product: [Retired] Red Hat Hardware Certification Program Reporter: Gary Smith <gasmith>
Component: Test Suite (harness)Assignee: Greg Nichols <gnichols>
Status: CLOSED DUPLICATE QA Contact: Lawrence Lim <llim>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2CC: rlandry, tao, tools-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
URL: http://mail.python.org/pipermail/python-list/2007-March/433232.html
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-21 15:48:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gary Smith 2008-09-30 14:17:09 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1

The device.py script doesn't appear to handle non-ascii characters in device names properly.



Reproducible: Sometimes

Steps to Reproduce:
1. Plug in "Microsoft Wheel Mouse" (as an example of hardware with non-ascii chars in device name).
2. Run the CDROM or Network tests in HTS.
3. Error is generated.
4. Removal of mouse and re-running, runs tests successfully.
Actual Results:  
loaded configuration /var/hts/config.xml
loaded plan /var/hts/plan.xml
skipping cdrom - disabled
skipping usb - disabled
running network on /org/freedesktop/Hal/devices/net_00_0e_0c_c1_a2_27
Traceback (most recent call last):
  File "/usr/bin/hts", line 55, in ?
    success = hts.do(args)
  File "/usr/share/hts/lib/hts/hardwaretest.py", line 172, in do
    result = self.doCertify()
  File "/usr/share/hts/lib/hts/hardwaretest.py", line 373, in doCertify
    run.setKudzuLog(kudzu.dumpDevice(logicalDeviceName=test.getLogicalDeviceName()))
  File "/usr/share/hts/lib/hts/htskudzu.py", line 62, in dumpDevice
    if device.hasPropertyValue(logicalDeviceName):
  File "/usr/share/hts/lib/hts/device.py", line 65, in hasPropertyValue
    if hasValue in value:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 29: ordinal not in range(128)


Expected Results:  
device.py should be able to store non-ascii values and not produce errors because of non-ascii characters.

Comment 3 Greg Nichols 2008-11-21 15:48:45 UTC

*** This bug has been marked as a duplicate of bug 471236 ***