From ffc0c3ee2551f4abe92700ae00e6eb6fc7e40865 Mon Sep 17 00:00:00 2001 From: remillet Date: Fri, 26 Jan 2018 16:45:47 -0800 Subject: [PATCH] DRYD-202: A fix to remote redundant parts in PUT requests to /vocabularies/${csid} that include an items-list part now return an items-list part in the response. --- .../collectionspace/services/vocabulary/VocabularyResource.java | 1 + 1 file changed, 1 insertion(+) 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 7a924496b..365ca8261 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 @@ -168,6 +168,7 @@ public class VocabularyResource extends } getRepositoryClient(ctx).update(ctx, csid, handler); if (handleItemsPayload(Method.PUT, ctx, csid, resourceMap, uriInfo, theUpdate) == true) { + ctx.setOutput(new PoxPayloadOut(getServiceName())); // Clear the "vocabularies_common" result since we're going to create a new one with the items-list payload result = this.getAuthority(ctx, request, uriInfo, specifier, true); } else { result = ctx.getOutput(); -- 2.47.3