Change in ovirt-engine[ovirt-engine-3.6]: sercon: servlet: make sure '\n' in key are handled
tnisan at redhat.com
tnisan at redhat.com
Wed Sep 16 16:27:10 UTC 2015
Tal Nisan has submitted this change and it was merged.
Change subject: sercon: servlet: make sure '\n' in key are handled
......................................................................
sercon: servlet: make sure '\n' in key are handled
The SSH Public key should not include any newline.
They are harmless when stored into Engine, but
the should not be passed around to vmconsole.
This patch enforces this constraint in two way:
- split the strings by '\n', producing one entry per
item. This way, the user can piggyback more than
one key in the same field.
- trim each key item to make sure no '\n' is emitted.
Change-Id: I80caba7749337a48c060fd5afad5c30b2e46a65f
Bug-Url: https://bugzilla.redhat.com/1223671
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
M backend/manager/modules/services/src/main/java/org/ovirt/engine/core/services/VMConsoleProxyServlet.java
1 file changed, 10 insertions(+), 7 deletions(-)
Approvals:
Jenkins CI: Passed CI tests
Francesco Romani: Verified
Omer Frenkel: Looks good to me, approved
--
To view, visit https://gerrit.ovirt.org/46239
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I80caba7749337a48c060fd5afad5c30b2e46a65f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.6
Gerrit-Owner: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
More information about the Engine-commits
mailing list