Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1799

ROP: Server can't deserialize LIKE expression with pattern already compiled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1B2
    • 3.1RC1, 4.0.M2
    • ROP
    • None

    Description

      When query qualifier contains LIKE expression with pattern already precompiled (for instance expression.filterObjects() was used before performing query) hessian deserializer on server side will throw following exception:

      com.caucho.hessian.io.HessianFieldException: org.apache.cayenne.exp.parser.PatternMatchNode.pattern: 'java.util.regex.Pattern' could not be instantiated

      Attachments

        1. 1799_LikeExpression.patch
          2 kB
          Oleg Artyukevich
        2. 1799_LikeExpression_test.patch
          0.8 kB
          Oleg Artyukevich

        Activity

          People

            Unassigned Unassigned
            demitri Dzmitry Kazimirchyk
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: