mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-08-16 13:47:28 +02:00
Update PipelineProcessor.java
This commit is contained in:
parent
2337eabff1
commit
5bef36c2db
@ -108,13 +108,12 @@ public class PipelineProcessor {
|
|||||||
if (inputFileTypes == null) {
|
if (inputFileTypes == null) {
|
||||||
inputFileTypes = new ArrayList<String>(Arrays.asList("ALL"));
|
inputFileTypes = new ArrayList<String>(Arrays.asList("ALL"));
|
||||||
}
|
}
|
||||||
if (!operation.matches("^[a-zA-Z0-9/_-]+$")) {
|
|
||||||
log.error(
|
if (!apiDocService.isValidOperation(operation, parameters)) {
|
||||||
"Invalid operation value received: {}. Only alphanumeric characters,"
|
log.error("Invalid operation or parameters: o:{} p:{}", operation, parameters);
|
||||||
+ " underscores, hyphens, and slashes are allowed.",
|
throw new IllegalArgumentException("Invalid operation: " + operation);
|
||||||
operation);
|
|
||||||
throw new IllegalArgumentException("Invalid operation value received.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String url = getBaseUrl() + operation;
|
String url = getBaseUrl() + operation;
|
||||||
List<Resource> newOutputFiles = new ArrayList<>();
|
List<Resource> newOutputFiles = new ArrayList<>();
|
||||||
if (!isMultiInputOperation) {
|
if (!isMultiInputOperation) {
|
||||||
|
Loading…
Reference in New Issue
Block a user