[
https://issues.apache.org/jira/browse/CXF-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Beryozkin resolved CXF-5299.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.6.11
2.7.8
3.0.0
Assignee: Sergey Beryozkin
thanks for a patch
> FiqlParser fails to parse an expression with child properties when SearchBean
> is used
> -------------------------------------------------------------------------------------
>
> Key: CXF-5299
> URL: https://issues.apache.org/jira/browse/CXF-5299
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.7.6
> Reporter: Nikolay Blindov
> Assignee: Sergey Beryozkin
> Fix For: 3.0.0, 2.7.8, 2.6.11
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> I created a test below for that.
> public class FiqlParserTest {
> private FiqlParser<SearchBean> parser = new
> FiqlParser<SearchBean>(SearchBean.class);
> @Test
> public void childPropertiesWithSearchBean() throws
> SearchParseException {
> parser.parse("header.name==king");
> }
> }
> I fixed it my project using copy of class FiqlParser with changes below.
> I replaced code in method "private Object parseType(...)"
> from
> int index = setter.indexOf(".");
> to
> int index = -1;
> if(!this.conditionClass.equals(SearchBean.class))
> index = setter.indexOf(".");
> It's work for me.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira