[
https://issues.apache.org/jira/browse/CAMEL-14044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aurélien Pupier updated CAMEL-14044:
------------------------------------
Description:
when there is a camel URi using a property placeholder, the validation is
reporting an "incapable" whcih is count as an error.
As we are "just" unable to validate the URI at design time as the value is
completely dynamic at runtime, it would be better to not report it as an error.
Either just skip it, or maybe report an info level?
{noformat}
from("{{fromSource}}").to("direct:demo");
{noformat}
technical:
set as incapable
[https://github.com/apache/camel/blob/40c1df7453d0136f35a60d11edc49c2a835ba59a/core/camel-base/src/main/java/org/apache/camel/runtimecatalog/impl/AbstractCamelCatalog.java#L327]
count incapable as errors:
https://github.com/apache/camel/blob/40c1df7453d0136f35a60d11edc49c2a835ba59a/core/camel-api/src/main/java/org/apache/camel/runtimecatalog/EndpointValidationResult.java#L98
was:
when there is a camel URi using a property placeholder, the validation is
reporting an "incapable" whcih is count as an error.
As we are "just" unable to validate the URI at design time as the value is
completely dynamic at runtime, it would be better to not report it as an error.
Either just skip it, or maybe report an info level?
{noformat}
from("\{{fromSource}}").to("direct:demo");
{noformat}
technical:
set as incapable
[https://github.com/apache/camel/blob/40c1df7453d0136f35a60d11edc49c2a835ba59a/core/camel-base/src/main/java/org/apache/camel/runtimecatalog/impl/AbstractCamelCatalog.java#L327]
count incapable as errors:
https://github.com/apache/camel/blob/40c1df7453d0136f35a60d11edc49c2a835ba59a/core/camel-api/src/main/java/org/apache/camel/runtimecatalog/EndpointValidationResult.java#L98
> Do not report validation error for camel uri based on property placeholder
> --------------------------------------------------------------------------
>
> Key: CAMEL-14044
> URL: https://issues.apache.org/jira/browse/CAMEL-14044
> Project: Camel
> Issue Type: Improvement
> Components: tooling
> Affects Versions: 2.24.2
> Reporter: Aurélien Pupier
> Priority: Major
>
> when there is a camel URi using a property placeholder, the validation is
> reporting an "incapable" whcih is count as an error.
> As we are "just" unable to validate the URI at design time as the value is
> completely dynamic at runtime, it would be better to not report it as an
> error.
> Either just skip it, or maybe report an info level?
> {noformat}
> from("{{fromSource}}").to("direct:demo");
> {noformat}
> technical:
> set as incapable
> [https://github.com/apache/camel/blob/40c1df7453d0136f35a60d11edc49c2a835ba59a/core/camel-base/src/main/java/org/apache/camel/runtimecatalog/impl/AbstractCamelCatalog.java#L327]
> count incapable as errors:
> https://github.com/apache/camel/blob/40c1df7453d0136f35a60d11edc49c2a835ba59a/core/camel-api/src/main/java/org/apache/camel/runtimecatalog/EndpointValidationResult.java#L98
--
This message was sent by Atlassian Jira
(v8.3.4#803005)