Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5299

FiqlParser fails to parse an expression with child properties when SearchBean is used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.6
    • 3.0.0-milestone1, 2.7.8, 2.6.11
    • JAX-RS
    • None
    • Unknown

    Description

      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.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            nikolayb Nikolay Blindov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified