Emily Zhang has posted comments on this change.

Change subject: engine:Trusted Compute Pools - Open Attestation integration 
with oVirt engine proposal
......................................................................


Patch Set 3: Code-Review+1

(1 comment)

http://gerrit.ovirt.org/#/c/26381/3/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/attestation/AttestationService.java
File 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/attestation/AttestationService.java:

Line 125:         JsonNode hosts = tree.get(HEADER_HOSTS);
Line 126:         if (hosts != null) {
Line 127:           for (JsonNode host : hosts) {
Line 128:             String name = host.get(HEADER_HOST_NAME).asText();
Line 129:             String level = host.get(HEADER_RESULT).asText();
> possible NPE? what happens if HEADER_HOST_NAME or HEADER_RESULT aren't in t
hi, Gilad
It's impossible. Because  HEADER_HOST_NAME and HEADER_RESULT are the required 
field, so these filed must be in the document.
Line 130:             AttestationValue value = new AttestationValue();
Line 131:             value.setHostName(name);
Line 132:             
value.setTrustLevel(AttestationResultEnum.valueOf(level.toUpperCase()));
Line 133:             values.add(value);


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I2f541b004ba383a3098cf7fbfca7a000b11b750f
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Emily Zhang <lijuan.zh...@intel.com>
Gerrit-Reviewer: Dave Chen <wei.d.c...@intel.com>
Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com>
Gerrit-Reviewer: Emily Zhang <lijuan.zh...@intel.com>
Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernan...@redhat.com>
Gerrit-Reviewer: Kobi Ianko <k...@redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vsz...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to