You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Hadrian Zbarcea (Created) (JIRA)" <ji...@apache.org> on 2012/01/14 05:28:39 UTC

[jira] [Created] (CAMEL-4894) Parameter binding not working with BeanExpression

Parameter binding not working with BeanExpression
-------------------------------------------------

                 Key: CAMEL-4894
                 URL: https://issues.apache.org/jira/browse/CAMEL-4894
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.9.0
            Reporter: Hadrian Zbarcea
            Assignee: Hadrian Zbarcea
             Fix For: 2.9.1, 2.10.0


The parameter [binding options|http://camel.apache.org/bean-binding.html] available in camel-2.9.0 do not work for BeanExpression. The reason is the fake ognl parser that gets confused about the syntax. We need to align the two scenarios and probably replace the ognl like parsing.

--
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] [Commented] (CAMEL-4894) Parameter binding not working with BeanExpression

Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13186533#comment-13186533 ] 

Claus Ibsen commented on CAMEL-4894:
------------------------------------

I took a look, its a minor bug in the OgnlHelper.splitOgnl method which did not take into account the new parameter binding syntax, which allows end users to specify methods having parenthesis defining the parameter binding. 

Fixing that makes the test work, (there is a error in the unit test as the method name is bar, not foo)
As well the expected result was wrong, so I simplified the unit test to return a fixed reply, and assert the input values.

Committed to trunk in rev 1231704, will backport to the 2.9 branch as well.
                
> Parameter binding not working with BeanExpression
> -------------------------------------------------
>
>                 Key: CAMEL-4894
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4894
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.0
>            Reporter: Hadrian Zbarcea
>            Assignee: Hadrian Zbarcea
>             Fix For: 2.9.1, 2.10.0
>
>
> The parameter [binding options|http://camel.apache.org/bean-binding.html] available in camel-2.9.0 do not work for BeanExpression. The reason is the fake ognl parser that gets confused about the syntax. We need to align the two scenarios and probably replace the ognl like parsing.

--
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-4894) Parameter binding not working with BeanExpression

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

Hadrian Zbarcea resolved CAMEL-4894.
------------------------------------

    Resolution: Fixed
    
> Parameter binding not working with BeanExpression
> -------------------------------------------------
>
>                 Key: CAMEL-4894
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4894
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.0
>            Reporter: Hadrian Zbarcea
>            Assignee: Hadrian Zbarcea
>             Fix For: 2.9.1, 2.10.0
>
>
> The parameter [binding options|http://camel.apache.org/bean-binding.html] available in camel-2.9.0 do not work for BeanExpression. The reason is the fake ognl parser that gets confused about the syntax. We need to align the two scenarios and probably replace the ognl like parsing.

--
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