Details
-
Bug
-
Resolution: Done
-
Major
-
6.0.1
-
None
Description
Description of problem: Resources (decision tables, rules, ...) cannot be loaded from a fragment bundle
Version-Release number of selected component (if applicable):
How reproducible: Deploy a fragment bundle containing kmodule.xml file, decision table.xml, ... attached to a host which contain the logic to create KieBase, KieSession
Actual results: KieSession.fireAllRules() = zero
Additional info: Problem is related to the fact that the OSGIKieModule class loads the resources after parsing the URL. During this process, a fixedlength substring to extract the protocol (bundle://) is used but as the protocol part length can change, this approach does not work. It should be replaced by URL.getPath()