Skip to content

Commit a39a16b

Browse files
Fix cache file deletion condition to ensure proper string handling
1 parent 296f82c commit a39a16b

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

examples/demo-zk-books/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<timestamp>${maven.build.timestamp}</timestamp>
4848
<maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
4949

50-
<tools.version>26.5.2</tools.version>
50+
<tools.version>26.5.4</tools.version>
5151

5252
</properties>
5353

extensions/entity-files/sources/core/src/main/java/tools/dynamia/modules/entityfile/controller/EntityFileStorageController.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,16 @@ public ResponseEntity<Resource> get(@PathVariable("uuid") String uuid, @PathVari
265265
.immutable();
266266
}
267267

268+
268269
return ResponseEntity.ok()
269270
.contentType(contentType)
270271
.cacheControl(cacheControl)
271272
.header(HttpHeaders.ETAG, etag.get())
273+
.header(HttpHeaders.CONTENT_DISPOSITION, ContentDisposition
274+
.attachment()
275+
.filename(file)
276+
.build()
277+
.toString())
272278
.body(resource);
273279
} else {
274280
return ResponseEntity.notFound().build();

0 commit comments

Comments
 (0)