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 2018/08/24 07:09:29 UTC
[camel] 01/02: CAMEL-12728: Fixed wrong component name bug,
that caused camel-example-rest-producer to fail its test.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 57b24a43424e5389b337b76289bb2f1c68ea0072
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Aug 24 08:51:37 2018 +0200
CAMEL-12728: Fixed wrong component name bug, that caused camel-example-rest-producer to fail its test.
---
.../src/main/java/org/apache/camel/component/rest/RestEndpoint.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/camel-core/src/main/java/org/apache/camel/component/rest/RestEndpoint.java b/camel-core/src/main/java/org/apache/camel/component/rest/RestEndpoint.java
index bbbf937..7e63034 100644
--- a/camel-core/src/main/java/org/apache/camel/component/rest/RestEndpoint.java
+++ b/camel-core/src/main/java/org/apache/camel/component/rest/RestEndpoint.java
@@ -322,7 +322,7 @@ public class RestEndpoint extends DefaultEndpoint {
// try all components
if (factory == null) {
for (String name : getCamelContext().getComponentNames()) {
- Component comp = setupComponent(getComponentName(), getCamelContext(), (Map<String, Object>) parameters.get("component"));
+ Component comp = setupComponent(name, getCamelContext(), (Map<String, Object>) parameters.get("component"));
if (comp instanceof RestProducerFactory) {
factory = (RestProducerFactory) comp;
cname = name;