Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
adapt
ace
Commits
923be4c1
Commit
923be4c1
authored
Jun 23, 2017
by
Michael Ritter
Browse files
Update security constraints
parent
0910edca
Changes
3
Hide whitespace changes
Inline
Side-by-side
ace-am/src/main/java/edu/umiacs/ace/rest/CollectionManagement.java
View file @
923be4c1
...
...
@@ -39,6 +39,8 @@ import java.util.List;
/**
* REST Service for adding and viewing collections
*
* todo: we should update most of the endpoints to be /collection/<id>/action
*
* @author shake
*/
@Path
(
"collection"
)
...
...
ace-am/src/main/java/edu/umiacs/ace/rest/CompareController.java
View file @
923be4c1
...
...
@@ -43,7 +43,7 @@ public class CompareController {
public
CompareResponse
compare
(
@PathParam
(
"id"
)
Long
id
,
CompareRequest
request
)
{
if
(
request
==
null
)
{
request
=
new
CompareRequest
();
request
.
setComparisons
(
ImmutableList
.
<
CompareFile
>
of
());
request
.
setComparisons
(
ImmutableList
.
of
());
}
EntityManager
em
=
PersistUtil
.
getEntityManager
();
...
...
ace-am/src/main/webapp/WEB-INF/web.xml
View file @
923be4c1
...
...
@@ -773,6 +773,7 @@
<security-constraint>
<web-resource-collection>
<web-resource-name>
Rest Audit
</web-resource-name>
<url-pattern>
/rest/compare/*
</url-pattern>
<url-pattern>
/rest/collection/audit/*
</url-pattern>
<http-method>
POST
</http-method>
</web-resource-collection>
...
...
@@ -785,7 +786,7 @@
<web-resource-collection>
<web-resource-name>
Rest Status
</web-resource-name>
<url-pattern>
/rest/groups
</url-pattern>
<url-pattern>
/rest/collections/
by-group/
*
</url-pattern>
<url-pattern>
/rest/collections/*
</url-pattern>
<http-method>
GET
</http-method>
</web-resource-collection>
<auth-constraint>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment