Enumeration fails due to non-UTF8 characters returned
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-dracclient |
Fix Released
|
High
|
Christopher Dearborn |
Bug Description
We've encountered a case where the iDRAC can return non-UTF8 characters in response to an enumeration query resulting in the following exception:
File "/usr/lib/
return self._raid_
File "/usr/lib/
doc = self.client.
File "/usr/lib/
filter_query, filter_dialect)
File "/usr/lib/
resp_xml = ElementTree.
File "lxml.etree.pyx", line 2993, in lxml.etree.
File "parser.pxi", line 1617, in lxml.etree.
File "parser.pxi", line 1495, in lxml.etree.
File "parser.pxi", line 1011, in lxml.etree.
File "parser.pxi", line 577, in lxml.etree.
File "parser.pxi", line 676, in lxml.etree.
File "parser.pxi", line 616, in lxml.etree.
XMLSyntaxError: Input is not proper UTF-8, indicate encoding !
Bytes: 0xC0 0x26 0x23 0x31, line 2, column 1998
Investigation has shown that this is due to DCIM_Controller
Changed in python-dracclient: | |
importance: | Undecided → High |
assignee: | nobody → Christopher Dearborn (cdearbor) |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/579673 /git.openstack. org/cgit/ openstack/ python- dracclient/ commit/ ?id=0de8b417683 527132f7ae6bc9a 403a5a83b99488
Committed: https:/
Submitter: Zuul
Branch: master
commit 0de8b4176835271 32f7ae6bc9a403a 5a83b99488
Author: Christopher Dearborn <email address hidden>
Date: Mon Jul 2 15:33:34 2018 -0400
Filter out non-ASCII characters on invalid UTF8
When an enumerate is done, it is possible that the iDRAC may return
invalid UTF8 that contains non-ASCII characters. This causes an
XMLSyntaxError to be thrown. This fix detects that situation and
filters out all non-ASCII characters to bypass the error.
See the following bug for further details: /bugs.launchpad .net/python- dracclient/ +bug/1779412
https:/
Closes-Bug: #1779412 20dcdd95c8d7e2a 26e0bf97a7d
Change-Id: I5003785dee9229