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

Invalid default field values in Spring Boot ComponentConfiguration classes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.18.2
    • Fix Version/s: 2.18.3
    • Component/s: build system
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Some components default their endpoint configuration using constant fields. For example, the camel-mail MailConfiguration class has:

      private String from = MailConstants.MAIL_DEFAULT_FROM;
      

      When the MailComponentConfiguration is generated, it has a field defaulted as follows:

      private String from = "MailConstants.MAIL_DEFAULT_FROM";
      

      Not sure exactly how many components are impacted by this but there's a few listed if you do:

      grep "DEFAULT" $(find . -name "*ComponentConfiguration.java")
      

        Attachments

          Activity

            People

            • Assignee:
              nferraro Nicola Ferraro
              Reporter:
              jamesnetherton James Netherton
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: