Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-6983

Facing issues After upgrading drools version from 7.44.0.Final to 7.64.0.Final and 7.57.0.Final

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 8.29.0.Final
    • None
    • None
    • None
    • 2022 Week 29-31 (from Jul 18)
    • NEW
    • NEW
    • ---
    • ---

      Due to security concern, we are upgrading drools versions in our project from 7.44.0.Final to 7.64.0.Final

      And since then we are facing some unresolvable issues.

       

      1. One of the issue, I have logged the details in stackoverflow. Please refer the link below:

      Passing http url in a rule throws exception in latest drools versions(v7.64 onwards) - Stack Overflow

       

      So, I downgraded the Drools versions to 7.57.0.Final and the above error was not occurring but another one came.

       

      1. Another issue which I encountered is that "java.lang.ArrayIndexOutOfboundexception" in MvelConstraint.java.

      Please refer drl sample:

      when

              $r1  : Fact(path == \"Resource1\" )

              $r2 :  Fact(path == \"Resource2\" , ((this.get(\"address.first()\") deepContains $r1.get(\"address.first()\"))))

       

      then      

              —

       end

       

      While analyzing further,  the flow does go to the public void loadHandles(InternalFactHandle[] handles, InternalFactHandle rightHandle) & private static InternalFactHandle getFactHandle(Declaration declaration, InternalFactHandle[] handles) in the EvaluatorWrapper.class file. But the variable "rightHandle" is pointed at the lefthand side object(i.e. r2 instead of r1). So that's why I am raising this concern.

            mfusco@redhat.com Mario Fusco
            abhinabamal Abhinaba Mal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: