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 (Created) (JIRA)" <ji...@apache.org> on 2012/04/15 11:11:38 UTC

[jira] [Created] (CAMEL-5173) camel-cxf - Remove convert from String -> List that assume its classes

camel-cxf - Remove convert from String -> List that assume its classes
----------------------------------------------------------------------

                 Key: CAMEL-5173
                 URL: https://issues.apache.org/jira/browse/CAMEL-5173
             Project: Camel
          Issue Type: Improvement
          Components: camel-cxf
            Reporter: Claus Ibsen
             Fix For: 2.10.0


In CxfConverter we have 2 type converters that does a
- String -> List
- String[] -> List

And it assumes the string is a class name.

This is really bad, as its too generic, eg String -> List. As the string can contain anything. And when adding camel-cxf to your application, you get these type converters added, that can cause side effects elsewhere.

For now this has not surfaced, as the type converter would ignore exceptions, but frankly when the type converter was used, it will use Apache CXF to load classes, on each attempt, which of couse is not desirable.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-5173) camel-cxf - Remove convert from String -> List that assume its classes

Posted by "Claus Ibsen (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-5173.
--------------------------------

    Resolution: Fixed
      Assignee: Claus Ibsen

This applies to the CXFRS component. Now the component has the responsible for loading the classes.
                
> camel-cxf - Remove convert from String -> List that assume its classes
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-5173
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5173
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.10.0
>
>
> In CxfConverter we have 2 type converters that does a
> - String -> List
> - String[] -> List
> And it assumes the string is a class name.
> This is really bad, as its too generic, eg String -> List. As the string can contain anything. And when adding camel-cxf to your application, you get these type converters added, that can cause side effects elsewhere.
> For now this has not surfaced, as the type converter would ignore exceptions, but frankly when the type converter was used, it will use Apache CXF to load classes, on each attempt, which of couse is not desirable.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira