diff --git a/basyx.aasrepository/basyx.aasrepository-http/src/main/java/org/eclipse/digitaltwin/basyx/aasrepository/http/AasRepositoryApiHTTPController.java b/basyx.aasrepository/basyx.aasrepository-http/src/main/java/org/eclipse/digitaltwin/basyx/aasrepository/http/AasRepositoryApiHTTPController.java index 53f79cdc5..58b3c7afb 100644 --- a/basyx.aasrepository/basyx.aasrepository-http/src/main/java/org/eclipse/digitaltwin/basyx/aasrepository/http/AasRepositoryApiHTTPController.java +++ b/basyx.aasrepository/basyx.aasrepository-http/src/main/java/org/eclipse/digitaltwin/basyx/aasrepository/http/AasRepositoryApiHTTPController.java @@ -204,7 +204,7 @@ public ResponseEntity putThumbnailAasRepository(Base64UrlEncodedIdentifier fileInputstream = file.getInputStream(); aasRepository.setThumbnail(aasIdentifier.getIdentifier(), fileName, file.getContentType(), fileInputstream); closeInputStream(fileInputstream); - return new ResponseEntity(HttpStatus.OK); + return new ResponseEntity(HttpStatus.NO_CONTENT); } catch (IOException e) { closeInputStream(fileInputstream); return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR); diff --git a/basyx.aasrepository/basyx.aasrepository-http/src/test/java/org/eclipse/digitaltwin/basyx/aasrepository/http/AasRepositoryHTTPSuite.java b/basyx.aasrepository/basyx.aasrepository-http/src/test/java/org/eclipse/digitaltwin/basyx/aasrepository/http/AasRepositoryHTTPSuite.java index 4e8bb589b..1e2238609 100644 --- a/basyx.aasrepository/basyx.aasrepository-http/src/test/java/org/eclipse/digitaltwin/basyx/aasrepository/http/AasRepositoryHTTPSuite.java +++ b/basyx.aasrepository/basyx.aasrepository-http/src/test/java/org/eclipse/digitaltwin/basyx/aasrepository/http/AasRepositoryHTTPSuite.java @@ -336,7 +336,7 @@ public void uploadThumbnailToShell() throws IOException { createDummyAasOnServer(getAas1JSONString()); CloseableHttpResponse getThumbnailResponse = uploadThumbnail(dummyAasId); - assertEquals(HttpStatus.OK.value(), getThumbnailResponse.getCode()); + assertEquals(HttpStatus.NO_CONTENT.value(), getThumbnailResponse.getCode()); getThumbnailResponse.close(); }