From ea9b5351553d96d36a96ffae7c5b40d9047ed9b3 Mon Sep 17 00:00:00 2001 From: fmendezh Date: Thu, 4 Jun 2020 09:33:06 +0200 Subject: [PATCH] removing content from the response, IPT relies on empty responses to validate responses https://github.com/gbif/ipt/blob/master/src/main/java/org/gbif/ipt/service/registry/impl/RegistryManagerImpl.java#L501 --- .../ws/resources/legacy/LegacyOrganizationResource.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/registry-ws/src/main/java/org/gbif/registry/ws/resources/legacy/LegacyOrganizationResource.java b/registry-ws/src/main/java/org/gbif/registry/ws/resources/legacy/LegacyOrganizationResource.java index 99412bd3c7..91924b6cbd 100644 --- a/registry-ws/src/main/java/org/gbif/registry/ws/resources/legacy/LegacyOrganizationResource.java +++ b/registry-ws/src/main/java/org/gbif/registry/ws/resources/legacy/LegacyOrganizationResource.java @@ -130,7 +130,8 @@ public Object getOrganization( // the key provided}" return ResponseEntity.status(HttpStatus.NOT_FOUND) .cacheControl(CacheControl.noCache()) - .body(new ErrorResponse("No organisation matches the key provided")); + .build(); + // .body(new ErrorResponse("No organisation matches the key provided")); } if (op != null) {