From 2691110ad8e33d88a34377331543eae4784d8582 Mon Sep 17 00:00:00 2001 From: Patrick Schmitz Date: Fri, 13 Nov 2009 20:18:54 +0000 Subject: [PATCH] NOJIRA - cleaned up some cruft left over from the old hack to filter vocab items. --- .../services/vocabulary/VocabularyResource.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/VocabularyResource.java b/services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/VocabularyResource.java index 9a2b00bfd..50e78b096 100644 --- a/services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/VocabularyResource.java +++ b/services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/VocabularyResource.java @@ -377,7 +377,6 @@ public class VocabularyResource extends AbstractCollectionSpaceResource { @PathParam("csid") String parentcsid, @Context UriInfo ui) { VocabularyitemsCommonList vocabularyItemObjectList = new VocabularyitemsCommonList(); - RepositoryInstance repoSession = null; NuxeoClient client = null; try{ // Note that docType defaults to the ServiceName, so we're fine with that. @@ -395,16 +394,6 @@ public class VocabularyResource extends AbstractCollectionSpaceResource { Response response = Response.status( Response.Status.INTERNAL_SERVER_ERROR).entity("Index failed").type("text/plain").build(); throw new WebApplicationException(response); - } finally { - if(repoSession != null) { - try { - // release session - client.releaseRepository(repoSession); - } catch (Exception e) { - logger.error("Could not close the repository session", e); - // no need to throw this service specific exception - } - } } return vocabularyItemObjectList; } -- 2.47.3