Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 6.4.0.Final, 6.5.0.CR2, 7.0.0.Beta2
    • Fix Version/s: 7.0.0.Beta3
    • Component/s: kie server
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      In a CDI container,

      • have the following:
        @Inject
        @KReleaseId(groupId = "org.group", artifactId = "artifact", version = "1.0")
        @KSession("defaultSession")
        private KieSession kSession;
      • have org.group:artifact:1.0 on the classpath without depending on kie-ci.

      You will notice that kSession is not injected.

      Show
      In a CDI container, have the following: @Inject @KReleaseId(groupId = "org.group", artifactId = "artifact", version = "1.0") @KSession("defaultSession") private KieSession kSession; have org.group:artifact:1.0 on the classpath without depending on kie-ci. You will notice that kSession is not injected.
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      Injecting a ksession annotated with a particular @KReleaseId is not able to read the passed release id from the classpath (the part that does that is not implemented).

      The bug is here: https://github.com/droolsjbpm/drools/blob/6.4.0.Final/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieRepositoryImpl.java#L123-L126

      Patch attached.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mfusco Mario Fusco
                  Reporter:
                  chadiem Chadi El Masri
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: