Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ac
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OATS-CADC
ac
Commits
83144b0c
Commit
83144b0c
authored
10 years ago
by
Brian Major
Browse files
Options
Downloads
Patches
Plain Diff
nep110 - restored following redirect on group update
parent
9db00f37
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
projects/cadcAccessControl/src/ca/nrc/cadc/ac/client/GMSClient.java
+16
-5
16 additions, 5 deletions
...adcAccessControl/src/ca/nrc/cadc/ac/client/GMSClient.java
with
16 additions
and
5 deletions
projects/cadcAccessControl/src/ca/nrc/cadc/ac/client/GMSClient.java
+
16
−
5
View file @
83144b0c
...
...
@@ -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
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment