[
https://issues.jboss.org/browse/DROOLS-47?page=com.atlassian.jira.plugin....
]
Karel Cemus updated DROOLS-47:
------------------------------
Description:
Drools org.drools.compiler.PackageBuilder has a bug in loading change-sets containing
damaged resources. Compilation of such change-set prevents builder recovery even by using
undo() method.
When user adds new Drools resource into KnowledgeBuilder, its implementation
KnowledgeBuilderImpl on line 50 calls PackageBuilder to register the change set file as an
official resource.
In a following step the PackageBuilder extracts all mentioned resources from that
change-set file and processes each of them separately but without their official
registration in loaded resources. But these resources are processed under their own
resource name which is the key in the set of reported errors.
Due to such behavior there remains errors preventing building stable
org.drools.KnowledgeBase with an IllegalArgumentException even after calling
KnowledgeBuilder#undo(), because it removes only errors reported directly with the
change-set resource, but not the errors reported with resources from the change-set.
was:
Drools org.drools.compiler.PackageBuilder has a bug in loading damaged change-sets
preventing its recovery using undo() method.
When user adds new Drools resource into KnowledgeBuilder, its implementation
KnowledgeBuilderImpl on line 50 calls PackageBuilder to register the change set file as an
official resource.
In a following step the PackageBuilder extracts all mentioned resources from that
change-set file and processes each of them separately but without their official
registration in loaded resources. But these resources are processed under their own
resource name which is the key in the set of reported errors.
Due to such behavior there remains errors preventing building stable
org.drools.KnowledgeBase with an IllegalArgumentException even after calling
KnowledgeBuilder#undo(), because it removes only errors reported directly with the
change-set resource, but not the errors reported with resources from the change-set.
Recovery from ChangeSet compilation fail
----------------------------------------
Key: DROOLS-47
URL:
https://issues.jboss.org/browse/DROOLS-47
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Environment: Drools Expert 5.4.0, 5.5.0
Reporter: Karel Cemus
Assignee: Mark Proctor
Priority: Minor
Drools org.drools.compiler.PackageBuilder has a bug in loading change-sets containing
damaged resources. Compilation of such change-set prevents builder recovery even by using
undo() method.
When user adds new Drools resource into KnowledgeBuilder, its implementation
KnowledgeBuilderImpl on line 50 calls PackageBuilder to register the change set file as an
official resource.
In a following step the PackageBuilder extracts all mentioned resources from that
change-set file and processes each of them separately but without their official
registration in loaded resources. But these resources are processed under their own
resource name which is the key in the set of reported errors.
Due to such behavior there remains errors preventing building stable
org.drools.KnowledgeBase with an IllegalArgumentException even after calling
KnowledgeBuilder#undo(), because it removes only errors reported directly with the
change-set resource, but not the errors reported with resources from the change-set.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira