Commit 83144b0c authored by Brian Major's avatar Brian Major
Browse files

nep110 - restored following redirect on group update

parent 9db00f37
Loading
Loading
Loading
Loading
+16 −5
Original line number Diff line number Diff line
@@ -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
    {
@@ -390,8 +390,7 @@ public class GMSClient
        log.debug("updateGroup: " + groupXML);
        
        HttpPost transfer = new HttpPost(updateGroupURL, groupXML.toString(), 
                                         "application/xml", false);

                                         "application/xml", true);
        transfer.setSSLSocketFactory(getSSLSocketFactory());
        transfer.run();
        
@@ -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);
        }
    }

    /**