dev add pdf docs protect
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2026-02-10 19:14:16 +07:00
parent 1ced86ff8c
commit 1472c342f5
2 changed files with 5 additions and 2 deletions
@@ -261,6 +261,7 @@ public class FileEntityService {
.orElseThrow(() -> new RuntimeException("File not found: " + id));
String extension = determineFileExtension(fileExt, fileEntity);
log.info("EXTENSION: {}", extension);
Path protectedFilePath = prepareProtectedPath(fileEntity, extension);
if (Files.exists(protectedFilePath)) {
@@ -358,7 +359,7 @@ public class FileEntityService {
}
private String determineFileExtension(String fileExt, FileEntity fileEntity) {
if (fileExt != null && !fileExt.trim().isEmpty()) {
if (fileExt != null) {
return fileExt;
} else {
return fileEntity.getFileExtension();