oVirt Jenkins CI Server has posted comments on this change.
Change subject: [Add]: Added unit test libvirtvmTests.py:TestLibvirtvm.testBuildCmdLine [Mod]: fixed code guide issues Signed-off-by: Maciej Lichon <maciej.lichon.wroclaw(a)gmail.com> Change-Id: I74b898a6398a72608d7933009644703aa3f8d831
......................................................................
Patch Set 1:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/2026/ (1/2)
--
To view, visit http://gerrit.ovirt.org/14111
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I74b898a6398a72608d7933009644703aa3f8d831
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Maciej Lichon <maciej.lichon.wroclaw(a)gmail.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [Add]: Added unit test libvirtvmTests.py:TestLibvirtvm.testBuildCmdLine
......................................................................
Patch Set 1: Fails; I would prefer that you didn't submit this
Build Failed
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/2082/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/2025/ : UNSTABLE
--
To view, visit http://gerrit.ovirt.org/14109
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I29df3325ce4ad191505ffb9b8df80c20f1215123
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Maciej Lichon <maciej.lichon.wroclaw(a)gmail.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [Add]: Added unit test libvirtvmTests.py:TestLibvirtvm.testBuildCmdLine
......................................................................
Patch Set 1:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/2082/ (2/2)
--
To view, visit http://gerrit.ovirt.org/14109
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I29df3325ce4ad191505ffb9b8df80c20f1215123
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Maciej Lichon <maciej.lichon.wroclaw(a)gmail.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [Add]: Added unit test libvirtvmTests.py:TestLibvirtvm.testBuildCmdLine
......................................................................
Patch Set 1:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/2025/ (1/2)
--
To view, visit http://gerrit.ovirt.org/14109
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I29df3325ce4ad191505ffb9b8df80c20f1215123
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Maciej Lichon <maciej.lichon.wroclaw(a)gmail.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Vinzenz Feenstra has uploaded a new change for review.
Change subject: agent: XML Character filtering improvement
......................................................................
agent: XML Character filtering improvement
The filtering of invalid characters for XML documents must not be
performed on unicode strings but on the encoded utf-8 string.
If we do not do this we'll be missing out on filtering everything
what would destroy the XML documents.
Change-Id: I21b970c8552b3f238c6bfe9271c5c5a37d40ea4d
Signed-off-by: Vinzenz Feenstra <vfeenstr(a)redhat.com>
---
M vdsm/guestIF.py
1 file changed, 10 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/09/13809/1
diff --git a/vdsm/guestIF.py b/vdsm/guestIF.py
index 675b78e..21cd916 100644
--- a/vdsm/guestIF.py
+++ b/vdsm/guestIF.py
@@ -47,7 +47,16 @@
else:
return c
- return ''.join(maskRestricted(c) for c in u)
+ # The filtering must be performed on utf-8 encoded strings to be effective
+ if isinstance(u, unicode):
+ try:
+ u = u.encode('utf-8')
+ except UnicodeError:
+ try:
+ u = u.encode('ascii', 'replace')
+ except UnicodeError:
+ return u''
+ return unicode(''.join(maskRestricted(c) for c in u))
class MessageState:
--
To view, visit http://gerrit.ovirt.org/13809
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I21b970c8552b3f238c6bfe9271c5c5a37d40ea4d
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Vinzenz Feenstra <vfeenstr(a)redhat.com>