Skip to content

Commit 693e9e3

Browse files
committed
Added access endpoint tests
1 parent 5d65190 commit 693e9e3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

http-tests/run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ download_dataset "$ADMIN_ENDPOINT_URL" > "$TMP_ADMIN_DATASET"
139139

140140
run_tests $(find ./admin/ -type f -name '*.sh')
141141
(( error_count += $? ))
142+
run_tests $(find ./access/ -type f -name '*.sh')
143+
(( error_count += $? ))
142144
run_tests $(find ./imports/ -type f -name '*.sh')
143145
(( error_count += $? ))
144146
run_tests $(find ./document-hierarchy/ -type f -name '*.sh')

src/main/java/com/atomgraph/linkeddatahub/resource/acl/Access.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public Response get(@QueryParam(QUERY) Query query,
136136
Model authModel = getEndpointAccessor().loadModel(query, defaultGraphUris, namedGraphUris);
137137
// special case where the agent is the owner of the requested document - automatically grant acl:Read/acl:Append/acl:Write access
138138
if (isOwner(accessTo, agent))
139-
{
139+
{
140140
log.debug("Agent <{}> is the owner of <{}>, granting acl:Read/acl:Append/acl:Write access", agent, accessTo);
141141
authModel.add(createOwnerAuthorization(accessTo, agent).getModel());
142142
}

0 commit comments

Comments
 (0)