You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Michael Genereux (Jira)" <ji...@apache.org> on 2020/08/07 23:06:00 UTC

[jira] [Created] (CAMEL-15387) Can't set Salesforce packages via application properties.

Michael Genereux created CAMEL-15387:
----------------------------------------

             Summary: Can't set Salesforce packages via application properties.
                 Key: CAMEL-15387
                 URL: https://issues.apache.org/jira/browse/CAMEL-15387
             Project: Camel
          Issue Type: Bug
          Components: camel-salesforce
    Affects Versions: 3.4.2
            Reporter: Michael Genereux


When assign the following line in application.properties, the property doesn't get set.
{code:java}
camel.component.salesforce.packages=com.companyname.camel.salesforce.dto
{code}
The line that sets it is ([in generated file|https://github.com/apache/camel/blob/9554181c81c8cfc0e02a408a7b2fbe4427904e5c/components/camel-salesforce/camel-salesforce-component/src/generated/java/org/apache/camel/component/salesforce/SalesforceComponentConfigurer.java#L129])
{code:java}
case "packages": target.setPackages(property(camelContext, java.lang.String[].class, value)); return true;
{code}
There's no converter from String to String[].  If the generated code tried to use String to String, the setter for packages will properly split on commas.

I don't know the right way to fix this.  Should there be a converter or should the generated code know to just assign it as a String since a setter is available?

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)