Commit 458219f7 authored by Enriko Käsper's avatar Enriko Käsper
Browse files

Merge branch 'hotfix/TEIS-1417' into 'master'

Release: merge 'hotfix-teis-1417' into 'master' created by Jürgen Hannus

See merge request teis/common-api-gateway!113
parents 6b04da62 53fee2d3
......@@ -30,6 +30,7 @@ import java.util.concurrent.CompletableFuture;
import static;
import static;
import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static;
import static;
......@@ -152,9 +153,13 @@ public class FileContentService {
private void validateFileExtensionAllowed(String fileName) {
void validateFileExtensionAllowed(String fileName) {
List<String> caseInsensitiveAllowedExtensions =
String extension = getExtension(fileName);
if (!allowedExtensions.contains(extension)) {
if (!caseInsensitiveAllowedExtensions.contains(extension.toLowerCase())) {
throw new TeisRestException(ErrorDTO.builder()
//commonApiGatewayVersion=forSearch ^commonApiGatewayVersion=.*?-SNAPSHOT
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment