Update PipelineProcessor.java

This commit is contained in:
Ludy87 2025-07-31 17:21:40 +02:00
parent 2337eabff1
commit 5bef36c2db
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

View File

@ -108,13 +108,12 @@ public class PipelineProcessor {
if (inputFileTypes == null) {
inputFileTypes = new ArrayList<String>(Arrays.asList("ALL"));
}
if (!operation.matches("^[a-zA-Z0-9/_-]+$")) {
log.error(
"Invalid operation value received: {}. Only alphanumeric characters,"
+ " underscores, hyphens, and slashes are allowed.",
operation);
throw new IllegalArgumentException("Invalid operation value received.");
if (!apiDocService.isValidOperation(operation, parameters)) {
log.error("Invalid operation or parameters: o:{} p:{}", operation, parameters);
throw new IllegalArgumentException("Invalid operation: " + operation);
}
String url = getBaseUrl() + operation;
List<Resource> newOutputFiles = new ArrayList<>();
if (!isMultiInputOperation) {