Alon Bar-Lev has posted comments on this change.
Change subject: engine : Validate parameter in canDoAction
......................................................................
Patch Set 7:
(1 comment)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/utils/ParametersValidator.java
Line 61: if (fieldAnnotation != null) {
Line 62: try {
Line 63:
cmdParams.get(fieldAnnotation.optional()).addAll(Arrays.asList((Parameter[])
field.get(cmd)));
Line 64: } catch (IllegalAccessException e) {
Line 65: log.warn("Unable to retrieve parameters for "
+ clz.getName() + "." + field.getName());
anything to cancel command... if we cannot determine parameters it is bad and
cannot be ignored.
Line 66: }
Line 67: }
Line 68: }
Line 69: clz = clz.getSuperclass();
--
To view, visit http://gerrit.ovirt.org/21485
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I15566c9177da28b2d47bbb6018fbfb61defcf3da
Gerrit-PatchSet: 7
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ravi Nori <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Ravi Nori <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches