You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2025/07/17 07:50:15 UTC
(camel) branch main updated (da6b900245a -> 694d3b9862d)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
from da6b900245a chore(deps): Bump com.microsoft.azure:msal4j from 1.21.0 to 1.22.0 (#18633)
new d2631ed45de CAMEL-22248: camel-yaml-dsl: Better error message if uri parameter is missing
new 694d3b9862d CAMEL-22248: camel-jbang: Fix export not working with http component in some special situations.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../download/DependencyDownloaderComponentResolver.java | 15 +++++++++------
.../org/apache/camel/dsl/yaml/common/YamlSupport.java | 5 ++++-
2 files changed, 13 insertions(+), 7 deletions(-)
(camel) 01/02: CAMEL-22248: camel-yaml-dsl: Better error message if uri parameter is missing
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit d2631ed45dedf1c36f869638751ad55e33cf1913
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Jul 17 09:27:29 2025 +0200
CAMEL-22248: camel-yaml-dsl: Better error message if uri parameter is missing
---
.../src/main/java/org/apache/camel/dsl/yaml/common/YamlSupport.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlSupport.java b/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlSupport.java
index 245f8f1b815..6079ed99620 100644
--- a/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlSupport.java
+++ b/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlSupport.java
@@ -63,6 +63,10 @@ public final class YamlSupport {
}
public static String createEndpointUri(CamelContext context, Node node, String uri, Map<String, Object> parameters) {
+ if (uri == null) {
+ throw new InvalidEndpointException(node, "Uri is mandatory");
+ }
+
String answer = uri;
if (parameters == null || parameters.isEmpty()) {
@@ -185,7 +189,6 @@ public final class YamlSupport {
throw new UnsupportedFieldException(val, key);
}
}
-
answer = YamlSupport.createEndpointUri(dc.getCamelContext(), node, uri, parameters);
}
(camel) 02/02: CAMEL-22248: camel-jbang: Fix export not working with http component in some special situations.
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 694d3b9862de90d982dad7074c99bd15a8d7b523
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Jul 17 09:49:50 2025 +0200
CAMEL-22248: camel-jbang: Fix export not working with http component in some special situations.
---
.../download/DependencyDownloaderComponentResolver.java | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/download/DependencyDownloaderComponentResolver.java b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/download/DependencyDownloaderComponentResolver.java
index 135b5020b54..b4c636f2183 100644
--- a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/download/DependencyDownloaderComponentResolver.java
+++ b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/download/DependencyDownloaderComponentResolver.java
@@ -16,6 +16,7 @@
*/
package org.apache.camel.main.download;
+import java.util.Arrays;
import java.util.List;
import org.apache.camel.CamelContext;
@@ -34,11 +35,13 @@ import org.apache.camel.tooling.model.OtherModel;
*/
public final class DependencyDownloaderComponentResolver extends DefaultComponentResolver {
- private static final String ACCEPTED_STUB_NAMES
- = "stub,bean,class,direct,kamelet,log,platform-http,rest,seda,vertx-http";
+ private static final String[] ACCEPTED_STUB_NAMES = {
+ "stub", "bean", "class", "direct", "kamelet", "log", "platform-http", "rest", "seda"
+ };
- private static final String ACCEPTED_TRANSFORM_NAMES
- = "stub,direct,kamelet,log,seda";
+ private static final String[] ACCEPTED_TRANSFORM_NAMES = {
+ "stub", "direct", "kamelet", "log", "seda"
+ };
private final CamelCatalog catalog = new DefaultCamelCatalog();
private final CamelContext camelContext;
@@ -131,14 +134,14 @@ public final class DependencyDownloaderComponentResolver extends DefaultComponen
private boolean accept(String name) {
if (transform) {
- return ACCEPTED_TRANSFORM_NAMES.contains(name);
+ return Arrays.stream(ACCEPTED_TRANSFORM_NAMES).anyMatch(n -> n.equals(name));
}
if (stubPattern == null) {
return true;
}
// we are stubbing but need to accept the following
- return ACCEPTED_STUB_NAMES.contains(name);
+ return Arrays.stream(ACCEPTED_STUB_NAMES).anyMatch(n -> n.equals(name));
}
}