Skip to content
Snippets Groups Projects
Commit 83144b0c authored by Brian Major's avatar Brian Major
Browse files

nep110 - restored following redirect on group update

parent 9db00f37
No related branches found
No related tags found
No related merge requests found
......@@ -375,7 +375,7 @@ public class GMSClient
* @throws AccessControlException If unauthorized to perform this operation.
* @throws java.io.IOException
*/
public void updateGroup(Group group)
public Group updateGroup(Group group)
throws IllegalArgumentException, GroupNotFoundException, UserNotFoundException,
AccessControlException, IOException
{
......@@ -388,13 +388,12 @@ public class GMSClient
StringBuilder groupXML = new StringBuilder();
GroupWriter.write(group, groupXML);
log.debug("updateGroup: " + groupXML);
HttpPost transfer = new HttpPost(updateGroupURL, groupXML.toString(),
"application/xml", false);
"application/xml", true);
transfer.setSSLSocketFactory(getSSLSocketFactory());
transfer.run();
Throwable error = transfer.getThrowable();
if (error != null)
{
......@@ -418,6 +417,18 @@ public class GMSClient
}
throw new IOException(error);
}
try
{
String retXML = transfer.getResponseBody();
log.debug("getGroup returned: " + retXML);
return GroupReader.read(retXML);
}
catch (Exception bug)
{
log.error("Unexpected exception", bug);
throw new RuntimeException(bug);
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment