Kiril Nesenko has posted comments on this change.

Change subject: packaging: Do not allow using ' in passwords
......................................................................


Patch Set 1: (1 inline comment)

....................................................
File packaging/fedora/setup/engine_validators.py
Line 160: def validatePassword(param, options=[]):
Line 161:     logging.debug("Validating password")
Line 162:     if not validateStringNotEmpty(param, options):
Line 163:         return False
Line 164:     if "'" in param:
I suggest to use:
if re.search("'", param):
Line 165:         logging.error(output_messages.ERR_NOT_ALLOWED_CHAR)
Line 166:         print output_messages.ERR_NOT_ALLOWED_CHAR
Line 167:         return False
Line 168:     if re.search("\s", param):


--
To view, visit http://gerrit.ovirt.org/8723
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I7fa3cf2e17ff8f5da670f901da7c681b8be86e8c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alex Lourie <alou...@redhat.com>
Gerrit-Reviewer: Alex Lourie <alou...@redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernan...@redhat.com>
Gerrit-Reviewer: Kiril Nesenko <knese...@redhat.com>
Gerrit-Reviewer: Moran Goldboim <mgold...@redhat.com>
Gerrit-Reviewer: Ofer Schreiber <oschr...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to