Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14044

Do not report validation error for camel uri based on property placeholder

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.24.2
    • Fix Version/s: 3.0.0.RC3, 3.0.0
    • Component/s: tooling
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      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?

      from("{{fromSource}}").to("direct:demo");
       

      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

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              apupier Aurélien Pupier
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: