Ori Liel has uploaded a new change for review. Change subject: restapi: Update Storage-Domain - handle type ......................................................................
restapi: Update Storage-Domain - handle type restapi does not have 'Master' data type. A storage-domain of type master is simply displayed as data. When user updates a storage-domain, he might send back <type>data</type>. Backend would fail this, because it looks like the user is updating the type field, which is forbidden (because the old value is 'master', and user gave 'data'). This patch intercepts the update and replaces 'master' back to 'data' if needed, so that the backend won't fail on ilegal update Change-Id: Iabaaa2d262a55e073d4aebe32ac76bbc9ab92d0d Signed-off-by: Ori Liel <[email protected]> --- M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainResource.java 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/01/6801/1 -- To view, visit http://gerrit.ovirt.org/6801 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iabaaa2d262a55e073d4aebe32ac76bbc9ab92d0d Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Ori Liel <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
