From: remillet Date: Sat, 27 Jan 2018 00:45:47 +0000 (-0800) Subject: DRYD-202: A fix to remote redundant parts in PUT requests to /vocabularies/${csid... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=ffc0c3ee2551f4abe92700ae00e6eb6fc7e40865;p=tmp%2Fjakarta-migration.git 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. --- 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();