Skip to content

Commit

Permalink
fix(core): do not validate subflow if namespace or id is pebble
Browse files Browse the repository at this point in the history
close #7271
  • Loading branch information
Skraye committed Feb 11, 2025
1 parent c532394 commit b24616d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/main/java/io/kestra/core/services/FlowService.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ public void checkValidSubflows(Flow flow) {
Set<ConstraintViolation<?>> violations = new HashSet<>();

subFlows.forEach(subflow -> {
String regex = ".*\\{\\{.+}}.*"; // regex to check if string contains pebble
String subflowId = subflow.getFlowId();
String namespace = subflow.getNamespace();
if (subflowId.matches(regex) || namespace.matches(regex)) {
return;
}
Optional<Flow> optional = findById(flow.getTenantId(), subflow.getNamespace(), subflow.getFlowId());

if (optional.isEmpty()) {
Expand Down

0 comments on commit b24616d

Please sign in to comment.