[JBoss JIRA] (DROOLS-561) Having a shared Query Node as last node of a segment causes a NPE
by Mario Fusco (JIRA)
Mario Fusco created DROOLS-561:
----------------------------------
Summary: Having a shared Query Node as last node of a segment causes a NPE
Key: DROOLS-561
URL: https://issues.jboss.org/browse/DROOLS-561
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Mario Fusco
Assignee: Mark Proctor
Having a shared Query Node as last node of a segment causes a NPE as in the following test case
{code}
@Test
public void testSharedQueryNode() throws Exception {
String drl =
"query find( Integer $i, String $s )\n" +
" $i := Integer( toString() == $s )\n" +
"end\n" +
"\n" +
"rule R2 salience -1 when\n" +
" $s : String()\n" +
" ?find( i, $s; )\n" +
"then\n" +
"end\n" +
"rule R1 when\n" +
" $s : String()\n" +
" ?find( i, $s; )\n" +
" $i : Integer( this == 1 ) from i\n" +
"then\n" +
" delete( $s );\n" +
"end\n";
KieHelper helper = new KieHelper();
helper.addContent( drl, ResourceType.DRL );
KieSession ksession = helper.build().newKieSession();
ksession.insert("1");
ksession.insert(1);
ksession.fireAllRules();
}
{code}
causes a NullPointerException like:
java.lang.NullPointerException
at org.drools.core.common.LeftTupleSetsImpl.removeInsert(LeftTupleSetsImpl.java:136)
at org.drools.core.phreak.RuleNetworkEvaluator.deleteLeftChild(RuleNetworkEvaluator.java:754)
at org.drools.core.phreak.PhreakQueryNode.doLeftDeletes(PhreakQueryNode.java:175)
at org.drools.core.phreak.PhreakQueryNode.doNode(PhreakQueryNode.java:31)
at org.drools.core.phreak.RuleNetworkEvaluator.evalQueryNode(RuleNetworkEvaluator.java:464)
at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:353)
at org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:161)
at org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:116)
at org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:216)
at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:91)
at org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:964)
at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1234)
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 12 months
[JBoss JIRA] (WFLY-2738) Deprecated resource is present in r-r-d of /subsystem=security/security-domain=*
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFLY-2738?page=com.atlassian.jira.plugin.... ]
Brian Stansberry commented on WFLY-2738:
----------------------------------------
Good question. That seems to be the heart of this JIRA. It seems the code actually works as expected and this a request for a behavior change and not really a bug.
The problem is the child registration at the *complete path element* login-module=* is an alias. But there's nothing that says the *child type login-module alone* is an alias. It's a valid child-type.
It's not the case in this particular security subsystem example, but it's perfectly possible that one complete path element for a given type is an alias while another is not.
If practical we could change the behavior to examine all the children registration of a given type and not report the type at all if all of them are aliases.
*However* if we change the behavior, we also must change read-children-types to have a matching semantic.
{code}
[standalone@localhost:9990 /] /subsystem=security/security-domain=other/acl=classic:read-children-types
{
"outcome" => "success",
"result" => [
"acl-module",
"login-module"
]
}
{code}
We would need to add an include-aliases param, default value of false to match r-r-d, and then not include the child-type in the result if r-r-d wouldn't include it.
I'm ok with making that change, but it is a breaking change, and it's likely quite a bit more work than I expected. So before doing that, please chat with Harald or Heiko to get a sense about how important this is to them.
> Deprecated resource is present in r-r-d of /subsystem=security/security-domain=*
> --------------------------------------------------------------------------------
>
> Key: WFLY-2738
> URL: https://issues.jboss.org/browse/WFLY-2738
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Domain Management
> Affects Versions: 8.0.0.CR1
> Reporter: Harald Pehl
> Assignee: Emmanuel Hugonnet
> Priority: Minor
> Fix For: 9.0.0.CR1
>
>
> When executing
> {code}
> /subsystem=security/security-domain=*:read-resource-description(recursive-depth=2)
> {code}
> the acl subresource contains both the deprecated child-resource {{login-module}} and the new one called {{acl-module}}:
> {code}
> ...
> "acl" => {
> "description" => "Access control list configuration. Configures a list of ACL modules to be used.",
> "model-description" => {"classic" => {
> "description" => "Access control list configuration. Configures a list of ACL modules to be used.",
> ...
> "operations" => undefined,
> "children" => {
> "acl-module" => {
> "description" => "ACL module",
> "model-description" => {"*" => {
> "description" => "List of authentication modules",
> ...
> "operations" => undefined,
> "children" => {}
> }}
> },
> "login-module" => {
> "description" => "Login module",
> "model-description" => {"*" => undefined}
> }
> }
> }}
> },
> ...
> {code}
> However the deprecated subresource {{login-modules}} should only appear if setting {{include-aliases=true}}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 12 months
[JBoss JIRA] (DROOLS-553) Build does not build on maven 3.2.2 with an empty repository
by Geoffrey De Smet (JIRA)
[ https://issues.jboss.org/browse/DROOLS-553?page=com.atlassian.jira.plugin... ]
Geoffrey De Smet resolved DROOLS-553.
-------------------------------------
Resolution: Deferred
Regression in maven 3.2.2. Fixed by Maven 3.2.3 (see jira link above). Closing this issue on our side.
> Build does not build on maven 3.2.2 with an empty repository
> ------------------------------------------------------------
>
> Key: DROOLS-553
> URL: https://issues.jboss.org/browse/DROOLS-553
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Geoffrey De Smet
> Assignee: Michael Biarnes Kiefer
> Priority: Blocker
>
> Our community contributors should be able to just build our stuff with the latest maven version. Currently that doesn't work.
> Building with maven 3.0.5 works.
> To reproduce:
> - Use maven 3.2.2
> - Build droolsjbpm-build-bootstrap
> - Do not build uberfire first
> - rm ~/.m2/repository/org/uberfire
> => this will force droolsjbpm-build-bootstrap to download the uberfire-bom 6.2.0-SNAPSHOT, which fails with maven 3.2.2:
> {code}
> $ mvn clean install -Dfull -DskipTests -U
> [INFO] Scanning for projects...
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR] The project org.kie:kie-parent-with-dependencies:6.2.0-SNAPSHOT (/Users/.../OptaPlanner/droolsjbpm-build-bootstrap/kie-parent-with-dependencies/pom.xml) has 1 error
> [ERROR] Non-resolvable import POM: Could not find artifact org.uberfire:uberfire-bom:pom:0.4.2-SNAPSHOT @ org.kie:kie-parent-with-dependencies:[unknown-version], /Users/.../OptaPlanner/droolsjbpm-build-bootstrap/kie-parent-with-dependencies/pom.xml, line 137, column 19 -> [Help 2]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 12 months