diff --git a/projects/cadcAccessControl/src/ca/nrc/cadc/ac/client/GMSClient.java b/projects/cadcAccessControl/src/ca/nrc/cadc/ac/client/GMSClient.java index f66b961eeef4f5e3b0f167fc068055ca56f1eec0..8821068e465bbab3f66aff2a9364e24c3591a0d0 100755 --- a/projects/cadcAccessControl/src/ca/nrc/cadc/ac/client/GMSClient.java +++ b/projects/cadcAccessControl/src/ca/nrc/cadc/ac/client/GMSClient.java @@ -141,11 +141,11 @@ public class GMSClient try { URL testURL = new URL(baseURL); - if (!testURL.getProtocol().equals("https")) - { - throw new IllegalArgumentException( - "URL must have HTTPS protocol"); - } +// if (!testURL.getProtocol().equals("https")) +// { +// throw new IllegalArgumentException( +// "URL must have HTTPS protocol"); +// } } catch (MalformedURLException e) { @@ -584,7 +584,7 @@ public class GMSClient throws GroupNotFoundException, UserNotFoundException, AccessControlException, IOException { String userIDType = AuthenticationUtil.getPrincipalType(userID); - String encodedUserID = URLEncoder.encode(userID.toString(), "UTF-8"); + String encodedUserID = URLEncoder.encode(userID.getName(), "UTF-8"); URL addUserMemberURL = new URL(this.baseURL + "/groups/" + targetGroupName + "/userMembers/" + encodedUserID + "?idType=" + userIDType);