]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
DRYD-202: A fix to remote redundant parts in PUT requests to /vocabularies/${csid...
authorremillet <remillet@yahoo.com>
Sat, 27 Jan 2018 00:45:47 +0000 (16:45 -0800)
committerremillet <remillet@yahoo.com>
Sat, 27 Jan 2018 00:45:47 +0000 (16:45 -0800)
services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/VocabularyResource.java

index 7a924496b7a9759188cfe5ff0656875fdf5a528d..365ca826175cfce0c05426b9c2df354df20f16a9 100644 (file)
@@ -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();