Skip to content

Commit

Permalink
removed the call to getAuthenticatedSession
Browse files Browse the repository at this point in the history
  • Loading branch information
fasseg authored and cbeer committed Jun 18, 2013
1 parent e3486de commit 9a069c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Expand Up @@ -93,7 +93,7 @@ public Response ingestAndMint(@PathParam("path")
.build();

} finally {
session.logout();
session.logout();
}
}

Expand Down
Expand Up @@ -65,7 +65,6 @@ public Response getVersionList(@PathParam("path")
final Variant bestPossibleResponse =
request.selectVariant(POSSIBLE_RDF_VARIANTS);

final Session session = getAuthenticatedSession();
try {
final FedoraResource resource =
nodeService.getObject(session, path);
Expand All @@ -89,15 +88,14 @@ public Response addVersionLabel(@PathParam("path")
final String versionLabel) throws RepositoryException {

final String path = toPath(pathList);
final Session session = getAuthenticatedSession();
try {
final FedoraResource resource =
nodeService.getObject(session, path);
resource.addVersionLabel(versionLabel);

return Response.noContent().build();
} finally {
session.logout();
session.logout();
}
}

Expand All @@ -112,7 +110,6 @@ public Dataset getVersion(@PathParam("path")
LOGGER.trace("getting version profile for {} at version {}", path,
versionLabel);

final Session session = getAuthenticatedSession();
try {
final FedoraResource resource =
nodeService.getObject(session, path, versionLabel);
Expand All @@ -126,7 +123,7 @@ public Dataset getVersion(@PathParam("path")
}

} finally {
session.logout();
session.logout();
}

}
Expand Down

0 comments on commit 9a069c1

Please sign in to comment.