From: <cl...@hy...> - 2008-05-27 18:27:21
|
Author: clee Date: 2008-05-27 11:27:18 -0700 (Tue, 27 May 2008) New Revision: 9667 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=9667 Modified: branches/HQ_3_2/ui_plugins/mass/app/GroupController.groovy branches/HQ_3_2/ui_plugins/mass/examples/groupSync.sh Log: Update sync() method to take POSTs rather than GETs Modified: branches/HQ_3_2/ui_plugins/mass/app/GroupController.groovy =================================================================== --- branches/HQ_3_2/ui_plugins/mass/app/GroupController.groovy 2008-05-27 18:25:00 UTC (rev 9666) +++ branches/HQ_3_2/ui_plugins/mass/app/GroupController.groovy 2008-05-27 18:27:18 UTC (rev 9667) @@ -77,7 +77,7 @@ } def sync(xmlOut, params) { - def xmlDef = new XmlParser().parse(new StringReader(params.getOne('args'))) + def xmlDef = new XmlParser().parse(new StringReader(getUpload('args'))) def deleteMissing = xmlDef.'@deleteMissing'?.toBoolean() def found = [] Modified: branches/HQ_3_2/ui_plugins/mass/examples/groupSync.sh =================================================================== --- branches/HQ_3_2/ui_plugins/mass/examples/groupSync.sh 2008-05-27 18:25:00 UTC (rev 9666) +++ branches/HQ_3_2/ui_plugins/mass/examples/groupSync.sh 2008-05-27 18:27:18 UTC (rev 9667) @@ -1,4 +1,4 @@ #!/bin/sh ARGS="`cat $1`" -curl http://hqadmin:hqadmin@localhost:7080/hqu/mass/group/sync.hqu -dargs="$ARGS" +curl http://hqadmin:hqadmin@localhost:7080/hqu/mass/group/sync.hqu -Fargs=@"$1" |