Ravi Nori has posted comments on this change.
Change subject: restapi: ProductInfo use ProductRPMVersion
......................................................................
Patch Set 3: (1 inline comment)
....................................................
File
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/util/VersionHelper.java
Line 15:
Line 16: version.setFullVersion(text);
Line 17: version.setMajor(Integer.parseInt(parts[0]));
Line 18: version.setMinor(Integer.parseInt(parts[1]));
Line 19:
If we return -1 as a return value for any version field, xsd validation will
fail in QE testing. If any of the fields are -1 we should return a null
Version. That way it wont be included in the xml returned. Please confirm with
Michael. At minimum we should go back to switch statement like earlier version
Line 20: if (parts[2].contains("-")) {
Line 21: version.setBuild(Integer.parseInt(parts[2].split("-")[0]));
Line 22: } else {
Line 23: version.setBuild(Integer.parseInt(parts[2]));
--
To view, visit http://gerrit.ovirt.org/13420
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie5c03460ef1af943278ab6f5171c042afdf4d392
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Douglas Schilling Landgraf <[email protected]>
Gerrit-Reviewer: Michael Pasternak <[email protected]>
Gerrit-Reviewer: Ravi Nori <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches