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

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

     [ https://issues.apache.org/jira/browse/CAMEL-15387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-15387.
---------------------------------
    Resolution: Fixed

> 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
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.5.0, 3.4.3
>
>
> 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)