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

Invalid default field values in Spring Boot ComponentConfiguration classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.2
    • 2.18.3
    • build system
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: