[JBoss JIRA] (WFCORE-848) "XNIO001001: No XNIO provider found" by some tests running with security manager
by Ingo Weiss (JIRA)
[ https://issues.jboss.org/browse/WFCORE-848?page=com.atlassian.jira.plugin... ]
Ingo Weiss updated WFCORE-848:
------------------------------
Original Estimate: 2 days
Remaining Estimate: 2 days
> "XNIO001001: No XNIO provider found" by some tests running with security manager
> --------------------------------------------------------------------------------
>
> Key: WFCORE-848
> URL: https://issues.jboss.org/browse/WFCORE-848
> Project: WildFly Core
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 2.0.0.Alpha11
> Reporter: Petr Kremensky
> Assignee: Ingo Weiss
> Original Estimate: 2 days
> Remaining Estimate: 2 days
>
> Some tests in wildfly-core fails due to "XNIO001001: No XNIO provider found" while run with security manager enabled.
> {noformat}
> mvn test -Dtest=SuspendResumeTestCase -Dsecurity.manager -DtestLogToFile=false
> 10:27:16,814 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.test-undertow-server: org.jboss.msc.service.StartException in service jboss.test-undertow-server: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.IllegalArgumentException: XNIO001001: No XNIO provider found
> at org.xnio.Xnio.doGetInstance(Xnio.java:238)
> at org.xnio.Xnio.getInstance(Xnio.java:181)
> at io.undertow.Undertow.start(Undertow.java:97)
> at org.wildfly.test.suspendresumeendpoint.TestUndertowService.start(TestUndertowService.java:94)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
> ... 3 more
> 10:27:16,816 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "web-suspend.jar")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.test-undertow-server" => "org.jboss.msc.service.StartException in service jboss.test-undertow-server: Failed to start service
> Caused by: java.lang.IllegalArgumentException: XNIO001001: No XNIO provider found"}}
> 10:27:16,817 ERROR [org.jboss.as.server] (management-handler-thread - 2) WFLYSRV0021: Deploy of deployment "web-suspend.jar" was rolled back with the following failure message:
> {"WFLYCTL0080: Failed services" => {"jboss.test-undertow-server" => "org.jboss.msc.service.StartException in service jboss.test-undertow-server: Failed to start service
> Caused by: java.lang.IllegalArgumentException: XNIO001001: No XNIO provider found"}}
> {noformat}
> Affected tests found so far:
> * org.wildfly.core.test.standalone.suspend.web.SuspendResumeTestCase
> * org.jboss.as.test.integration.domain.suspendresume.DomainGracefulShutdownTestCase
> * org.jboss.as.test.integration.domain.suspendresume.DomainSuspendResumeTestCase
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 5 months
[JBoss JIRA] (DROOLS-1405) Drools compiler throws NPE on DRL save when more than one rule extends same rule in the same package
by Mario Fusco (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1405?page=com.atlassian.jira.plugi... ]
Mario Fusco reopened DROOLS-1405:
---------------------------------
I reproduced the bug through incremental compilation
{code}
@Test
public void testIncrementalCompilationWithExtendsRule() throws Exception {
String drl1 =
"rule \"test1\" when then end\n";
String drl2 =
"rule \"test2\" extends \"test1\" when then end\n" +
"rule \"test3\" extends \"test1\" when then end\n";
KieServices ks = KieServices.Factory.get();
KieFileSystem kfs = ks.newKieFileSystem()
.write( "src/main/resources/r1.drl", drl1 );
KieBuilder kieBuilder = ks.newKieBuilder( kfs ).buildAll();
assertEquals( 0, kieBuilder.getResults().getMessages( org.kie.api.builder.Message.Level.ERROR ).size() );
//Add file with error - expect 1 "added" error message
kfs.write( "src/main/resources/r2.drl", drl2 );
IncrementalResults addResults = ( (InternalKieBuilder) kieBuilder ).createFileSet( "src/main/resources/r2.drl" ).build();
assertEquals( 0, addResults.getAddedMessages().size() );
}
{code}
> Drools compiler throws NPE on DRL save when more than one rule extends same rule in the same package
> ----------------------------------------------------------------------------------------------------
>
> Key: DROOLS-1405
> URL: https://issues.jboss.org/browse/DROOLS-1405
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.5.0.Final, 7.0.0.Beta5
> Environment: Linux - CentOS 6.8
> wildfly 10.0.1
> kie 6.5.x and 7 snapshot
> Reporter: Gal Nitzan
> Assignee: Mario Fusco
> Priority: Critical
> Labels: NPE, drl, drools
>
> Hi,
> I get the following error when saving a DRL file:
> 2017-01-12 23:16:39,677 INFO [org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder] (EJB default - 10) Incremental build request being processed: default://master@opsc/health/src/main/resources/com/opsc/health/test2.drl (updated).
> 2017-01-12 23:16:39,730 ERROR [org.kie.workbench.common.services.backend.builder.Builder] (EJB default - 10) null: java.lang.NullPointerException
> at java.util.LinkedList.addAll(LinkedList.java:408)
> at java.util.LinkedList.addAll(LinkedList.java:387)
> at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.sortRulesByDependency(KnowledgeBuilderImpl.java:1231)
> at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.compileRules(KnowledgeBuilderImpl.java:1086)
> at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.compileAllRules(KnowledgeBuilderImpl.java:989)
> at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildRules(CompositeKnowledgeBuilderImpl.java:264)
> at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildPackages(CompositeKnowledgeBuilderImpl.java:122)
> at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:105)
> at org.drools.compiler.kie.builder.impl.KieBuilderSetImpl.buildChanges(KieBuilderSetImpl.java:142)
> at org.drools.compiler.kie.builder.impl.KieBuilderSetImpl.build(KieBuilderSetImpl.java:94)
> at org.kie.workbench.common.services.backend.builder.Builder.buildIncrementally(Builder.java:539)
> at org.kie.workbench.common.services.backend.builder.Builder.addResource(Builder.java:383)
> at org.kie.workbench.common.services.backend.builder.Builder.addResource(Builder.java:324)
> at org.kie.workbench.common.services.backend.builder.Builder.updateResource(Builder.java:405)
> at org.kie.workbench.common.services.backend.builder.BuildServiceImpl.lambda$updatePackageResource$1(BuildServiceImpl.java:320)
> at org.kie.workbench.common.services.backend.builder.BuildServiceImpl.updatePackageResource(BuildServiceImpl.java:338)
> at org.kie.workbench.common.services.backend.builder.BuildServiceImpl.updatePackageResource(BuildServiceImpl.java:319)
> at org.kie.workbench.common.services.backend.builder.BuildServiceImpl$Proxy$_$$_WeldClientProxy.updatePackageResource(Unknown Source)
> at org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder$4.execute(ResourceChangeIncrementalBuilder.java:267)
> at org.guvnor.common.services.builder.IncrementalBuilderExecutorManager.execute(IncrementalBuilderExecutorManager.java:77)
> at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
> at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82)
> at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)
> at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
> at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)
> at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
> at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:53)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:263)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.notSupported(CMTTxInterceptor.java:313)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:237)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
> at org.jboss.as.ejb3.concurrency.ContainerManagedConcurrencyInterceptor.processInvocation(ContainerManagedConcurrencyInterceptor.java:110)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
> at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)
> at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
> at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
> at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)
> at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.as.ejb3.component.interceptors.LogDiagnosticContextRecoveryInterceptor.processInvocation(LogDiagnosticContextRecoveryInterceptor.java:82)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
> at org.jboss.as.ejb3.component.interceptors.AsyncFutureInterceptorFactory$1$2.runInvocation(AsyncFutureInterceptorFactory.java:104)
> at org.jboss.as.ejb3.component.interceptors.AsyncInvocationTask.run(AsyncInvocationTask.java:74)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> at org.jboss.threads.JBossThread.run(JBossThread.java:320)
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 5 months
[JBoss JIRA] (DROOLS-1404) Alpha node not shared with static function evaluation
by Matteo Mortari (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1404?page=com.atlassian.jira.plugi... ]
Matteo Mortari edited comment on DROOLS-1404 at 1/13/17 10:42 AM:
------------------------------------------------------------------
Following test when placed in Misc2Test exhibit the problem:
{code:java}
public static class TestStaticUtils {
public static int return1() {
return 1;
}
}
@Test
public void testShouldAlphaShareBecauseSameConstantDespiteDifferentSyntax() {
String drl1 = "package c;\n" +
"import " + TestObject.class.getCanonicalName() + "\n" +
"rule fileArule1 when\n" +
" TestObject(value == 1)\n" +
"then\n" +
"end\n" +
"";
String drl2 = "package iTzXzx;\n" + // <<- keep the different package
"import " + TestObject.class.getCanonicalName() + "\n" +
"import " + TestStaticUtils.class.getCanonicalName() + "\n" +
"rule fileBrule1 when\n" +
" TestObject(value == TestStaticUtils.return1() )\n" +
"then\n" +
"end\n" +
"rule fileBrule2 when\n" + // <<- keep this rule
" TestObject(value == 0 )\n" +
"then\n" +
"end\n" +
"";
KieSession kieSession = new KieHelper()
.addContent(drl1, ResourceType.DRL)
.addContent(drl2, ResourceType.DRL)
.build().newKieSession();
ReteDumper.dumpRete(kieSession);
kieSession.addEventListener(new DebugAgendaEventListener());
kieSession.insert(new TestObject(1));
assertEquals(2, kieSession.fireAllRules() );
}
{code}
Resulting in the following wrong:
{code:java}
[EntryPointNode(1) EntryPoint::DEFAULT ] on Partition(MAIN)
[ObjectTypeNode(3)::EntryPoint::DEFAULT objectType=[ClassObjectType class=org.drools.compiler.integrationtests.Misc2Test$TestObject] expiration=-1ms ] on Partition(MAIN)
[AlphaNode(10) constraint=value == 1] on Partition(3)
[LeftInputAdapterNode(11)] on Partition(3)
[RuleTerminalNode(12): rule=fileArule1] on Partition(3)
[AlphaNode(4) constraint=value == TestStaticUtils.return1()] on Partition(1)
[LeftInputAdapterNode(5)] on Partition(1)
[RuleTerminalNode(6): rule=fileBrule1] on Partition(1)
[AlphaNode(7) constraint=value == 0] on Partition(2)
[LeftInputAdapterNode(8)] on Partition(2)
[RuleTerminalNode(9): rule=fileBrule2] on Partition(2)
[ObjectTypeNode(2)::EntryPoint::DEFAULT objectType=[ClassObjectType class=org.drools.core.reteoo.InitialFactImpl] expiration=-1ms ] on Partition(MAIN)
{code}
As AlphaNode4 should not exist, it should have been attached-merged inside AlphaNode10.
was (Author: tari_manga):
Following test when placed in Misc2Test exhibit the problem:
{code:java}
public static class TestStaticUtils {
public static int return1() {
return 1;
}
}
@Test
public void testShouldAlphaShareBecauseSameConstantDespiteDifferentSyntax() {
String drl1 = "package c;\n" +
"import " + TestObject.class.getCanonicalName() + "\n" +
"rule fileArule1 when\n" +
" TestObject(value == 1)\n" +
"then\n" +
"end\n" +
"";
String drl2 = "package iTzXzx;\n" + // <<- keep the different package
"import " + TestObject.class.getCanonicalName() + "\n" +
"import " + TestStaticUtils.class.getCanonicalName() + "\n" +
"rule fileBrule1 when\n" +
" TestObject(value == TestStaticUtils.return1() )\n" +
"then\n" +
"end\n" +
"rule fileBrule2 when\n" + // <<- keep this rule
" TestObject(value == 0 )\n" +
"then\n" +
"end\n" +
"";
KieSession kieSession = new KieHelper()
.addContent(drl1, ResourceType.DRL)
.addContent(drl2, ResourceType.DRL)
.build().newKieSession();
ReteDumper.dumpRete(kieSession);
kieSession.addEventListener(new DebugAgendaEventListener());
kieSession.insert(new TestObject(1));
assertEquals(2, kieSession.fireAllRules() );
}
{code}
Resulting in the following wrong mesh:
{code:java}
[EntryPointNode(1) EntryPoint::DEFAULT ] on Partition(MAIN)
[ObjectTypeNode(3)::EntryPoint::DEFAULT objectType=[ClassObjectType class=org.drools.compiler.integrationtests.Misc2Test$TestObject] expiration=-1ms ] on Partition(MAIN)
[AlphaNode(10) constraint=value == 1] on Partition(3)
[LeftInputAdapterNode(11)] on Partition(3)
[RuleTerminalNode(12): rule=fileArule1] on Partition(3)
[AlphaNode(4) constraint=value == TestStaticUtils.return1()] on Partition(1)
[LeftInputAdapterNode(5)] on Partition(1)
[RuleTerminalNode(6): rule=fileBrule1] on Partition(1)
[AlphaNode(7) constraint=value == 0] on Partition(2)
[LeftInputAdapterNode(8)] on Partition(2)
[RuleTerminalNode(9): rule=fileBrule2] on Partition(2)
[ObjectTypeNode(2)::EntryPoint::DEFAULT objectType=[ClassObjectType class=org.drools.core.reteoo.InitialFactImpl] expiration=-1ms ] on Partition(MAIN)
{code}
As AlphaNode4 should not exist, it should have been attached-merged inside AlphaNode10.
> Alpha node not shared with static function evaluation
> -----------------------------------------------------
>
> Key: DROOLS-1404
> URL: https://issues.jboss.org/browse/DROOLS-1404
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
>
> The following code when placed in Misc2Test exhibit the problem
> {code:java}
> public static class TestStaticUtils {
> public static int return1() {
> return 1;
> }
> }
>
> @Test
> public void testCheck2() {
> String drl = "package c;\n" + // <<- keep this package name
> "\n" +
> "import " + TestObject.class.getCanonicalName() + "\n" +
> "\n" +
> "rule fileBrule1 when\n" +
> " TestObject(value == 1)\n" +
> "then\n" +
> "end"
> ;
>
> String drl2 = "package iTransiberian;\n" + // <<- keep this package name
> "\n" +
> "import " + TestObject.class.getCanonicalName() + "\n" +
> "import " + TestStaticUtils.class.getCanonicalName() + "\n" +
> "\n" +
> "rule fileArule1 when\n" +
> " $t : String()\n" +
> " TestObject(value == TestStaticUtils.return1() )\n" +
> "then\n" +
> "end\n"+
> "rule fileArule2 when\n" + // <<- keep this rule
> " $t : String()\n" +
> " TestObject(value == 0 )\n" +
> "then\n" +
> "end\n" +
> ""
> ;
> KieSession kieSession = new KieHelper()
> .addContent(drl2, ResourceType.DRL)
> .addContent(drl, ResourceType.DRL)
> .build().newKieSession();
>
> ReteDumper.dumpRete(kieSession);
> System.out.println(drl);
> System.out.println(drl2);
> kieSession.addEventListener(new DebugAgendaEventListener());
> kieSession.insert("test");
> kieSession.insert(new TestObject(1));
> assertEquals(2, kieSession.fireAllRules() );
> }
> {code}
> Conducting further analysis...
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 5 months
[JBoss JIRA] (WFCORE-2186) Salted password cannot be set through CLI for Elytron filesystem-realm identity
by Jean-Francois Denise (JIRA)
[ https://issues.jboss.org/browse/WFCORE-2186?page=com.atlassian.jira.plugi... ]
Jean-Francois Denise commented on WFCORE-2186:
----------------------------------------------
[~michpetrov], the parsing can be a bit tricky in the CLI. I have implemented both support at execution and completion time (yes, bytes{ is breaking completion, and it could be nice to help users filling the array).
In case you want to compare with what you did, here is my commit: https://github.com/jfdenise/wildfly-core/commit/b71668528a3a35a6998b43c22...
Thanks.
JF
> Salted password cannot be set through CLI for Elytron filesystem-realm identity
> -------------------------------------------------------------------------------
>
> Key: WFCORE-2186
> URL: https://issues.jboss.org/browse/WFCORE-2186
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.0.0.Alpha16
> Reporter: Ondrej Lukas
> Assignee: Michal Petrov
>
> Password encryption/hash mechanisms which contain {{salt}} attribute for filesystem-realm identity cannot be added through CLI. {{set-password}} operation fails and finishes with failure-description "WFLYCTL0155: password may not be null" even if password was set. It seems when {{salt}} attribute with {{bytes}} value is used then {{password}} attribute is ignored by CLI.
> Following password encryption/hash mechanisms from filesystem-realm identity are affected by issue:
> - {{bcrypt}}
> - {{salted-simple-digest}}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 5 months
[JBoss JIRA] (DROOLS-1404) Alpha node not shared with static function evaluation
by Matteo Mortari (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1404?page=com.atlassian.jira.plugi... ]
Matteo Mortari commented on DROOLS-1404:
----------------------------------------
Following test when placed in Misc2Test exhibit the problem:
{code:java}
public static class TestStaticUtils {
public static int return1() {
return 1;
}
}
@Test
public void testShouldAlphaShareBecauseSameConstantDespiteDifferentSyntax() {
String drl1 = "package c;\n" +
"import " + TestObject.class.getCanonicalName() + "\n" +
"rule fileArule1 when\n" +
" TestObject(value == 1)\n" +
"then\n" +
"end\n" +
"";
String drl2 = "package iTzXzx;\n" + // <<- keep the different package
"import " + TestObject.class.getCanonicalName() + "\n" +
"import " + TestStaticUtils.class.getCanonicalName() + "\n" +
"rule fileBrule1 when\n" +
" TestObject(value == TestStaticUtils.return1() )\n" +
"then\n" +
"end\n" +
"rule fileBrule2 when\n" + // <<- keep this rule
" TestObject(value == 0 )\n" +
"then\n" +
"end\n" +
"";
KieSession kieSession = new KieHelper()
.addContent(drl1, ResourceType.DRL)
.addContent(drl2, ResourceType.DRL)
.build().newKieSession();
ReteDumper.dumpRete(kieSession);
kieSession.addEventListener(new DebugAgendaEventListener());
kieSession.insert(new TestObject(1));
assertEquals(2, kieSession.fireAllRules() );
}
{code}
Resulting in the following wrong mesh:
{code:java}
[EntryPointNode(1) EntryPoint::DEFAULT ] on Partition(MAIN)
[ObjectTypeNode(3)::EntryPoint::DEFAULT objectType=[ClassObjectType class=org.drools.compiler.integrationtests.Misc2Test$TestObject] expiration=-1ms ] on Partition(MAIN)
[AlphaNode(10) constraint=value == 1] on Partition(3)
[LeftInputAdapterNode(11)] on Partition(3)
[RuleTerminalNode(12): rule=fileArule1] on Partition(3)
[AlphaNode(4) constraint=value == TestStaticUtils.return1()] on Partition(1)
[LeftInputAdapterNode(5)] on Partition(1)
[RuleTerminalNode(6): rule=fileBrule1] on Partition(1)
[AlphaNode(7) constraint=value == 0] on Partition(2)
[LeftInputAdapterNode(8)] on Partition(2)
[RuleTerminalNode(9): rule=fileBrule2] on Partition(2)
[ObjectTypeNode(2)::EntryPoint::DEFAULT objectType=[ClassObjectType class=org.drools.core.reteoo.InitialFactImpl] expiration=-1ms ] on Partition(MAIN)
{code}
As AlphaNode4 should not exist, it should have been attached-merged inside AlphaNode10.
> Alpha node not shared with static function evaluation
> -----------------------------------------------------
>
> Key: DROOLS-1404
> URL: https://issues.jboss.org/browse/DROOLS-1404
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
>
> The following code when placed in Misc2Test exhibit the problem
> {code:java}
> public static class TestStaticUtils {
> public static int return1() {
> return 1;
> }
> }
>
> @Test
> public void testCheck2() {
> String drl = "package c;\n" + // <<- keep this package name
> "\n" +
> "import " + TestObject.class.getCanonicalName() + "\n" +
> "\n" +
> "rule fileBrule1 when\n" +
> " TestObject(value == 1)\n" +
> "then\n" +
> "end"
> ;
>
> String drl2 = "package iTransiberian;\n" + // <<- keep this package name
> "\n" +
> "import " + TestObject.class.getCanonicalName() + "\n" +
> "import " + TestStaticUtils.class.getCanonicalName() + "\n" +
> "\n" +
> "rule fileArule1 when\n" +
> " $t : String()\n" +
> " TestObject(value == TestStaticUtils.return1() )\n" +
> "then\n" +
> "end\n"+
> "rule fileArule2 when\n" + // <<- keep this rule
> " $t : String()\n" +
> " TestObject(value == 0 )\n" +
> "then\n" +
> "end\n" +
> ""
> ;
> KieSession kieSession = new KieHelper()
> .addContent(drl2, ResourceType.DRL)
> .addContent(drl, ResourceType.DRL)
> .build().newKieSession();
>
> ReteDumper.dumpRete(kieSession);
> System.out.println(drl);
> System.out.println(drl2);
> kieSession.addEventListener(new DebugAgendaEventListener());
> kieSession.insert("test");
> kieSession.insert(new TestObject(1));
> assertEquals(2, kieSession.fireAllRules() );
> }
> {code}
> Conducting further analysis...
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 5 months
[JBoss JIRA] (DROOLS-1404) Alpha node not shared with static function evaluation
by Matteo Mortari (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1404?page=com.atlassian.jira.plugi... ]
Matteo Mortari edited comment on DROOLS-1404 at 1/13/17 10:34 AM:
------------------------------------------------------------------
-Further analysis confirms suspects as per discussion with Mario, there are actually two issues, one a false alpha node sharing, another a problem with the indexing.-
-Placing the following in the Misc2Test will manifest the two issues separately-
previous tests were in conflict with the contract of the alpha nodes.
Even while evaluating a (static) function, the value should be expected constant; there is no functionality to instruct the engine a function has changed in value, as it is per the alpha node contract memoized. Therefore previous test broke this contract and not valid test.
was (Author: tari_manga):
Further analysis confirms suspects as per discussion with Mario, there are actually two issues, one a false alpha node sharing, another a problem with the indexing.
Placing the following in the Misc2Test will manifest the two issues separately
{code:java}
/**
* Being mutable static variable holder, it's unsafe to be used concurrently from different places.
*/
public static class UnsafeStaticValuesHolder {
private static Object var1;
public static Object getVar1() {
return var1;
}
public static void setVar1(Object input) {
var1 = input;
}
public static void reset() {
var1 = null;
}
}
@Test
public void testShareNotConstant() {
UnsafeStaticValuesHolder.reset();
UnsafeStaticValuesHolder.setVar1(1);
String drl = "package c;\n" +
"\n" +
"import " + TestObject.class.getCanonicalName() + "\n" +
"import " + UnsafeStaticValuesHolder.class.getCanonicalName() + "\n" +
"\n" +
"rule fileBrule1 when\n" +
" TestObject(value == 1)\n" +
"then\n" +
"end\n" +
"rule fileArule1 when\n" +
" TestObject(value == UnsafeStaticValuesHolder.getVar1() )\n" +
"then\n" +
"end\n" +
""
;
KieSession kieSession = new KieHelper()
.addContent(drl, ResourceType.DRL)
.build().newKieSession();
ReteDumper.dumpRete(kieSession);
System.out.println(drl);
kieSession.addEventListener(new DebugAgendaEventListener());
UnsafeStaticValuesHolder.setVar1(2);
kieSession.insert(new TestObject(1));
assertEquals(1, kieSession.fireAllRules() );
}
@Test
public void testShareNotConstantIndexingIssue() {
UnsafeStaticValuesHolder.reset();
UnsafeStaticValuesHolder.setVar1(2);
String drl = "package c;\n" +
"\n" +
"import " + TestObject.class.getCanonicalName() + "\n" +
"import " + UnsafeStaticValuesHolder.class.getCanonicalName() + "\n" +
"\n" +
"rule fileBrule1 when\n" +
" TestObject(value == 1)\n" +
"then\n" +
"end\n" +
"rule fileArule1 when\n" +
" TestObject(value == UnsafeStaticValuesHolder.getVar1() )\n" +
"then\n" +
"end\n" +
"rule fileArule0 when\n" +
" TestObject(value == 0 )\n" +
"then\n" +
"end\n" +
""
;
KieSession kieSession = new KieHelper()
.addContent(drl, ResourceType.DRL)
.build().newKieSession();
ReteDumper.dumpRete(kieSession);
System.out.println(drl);
kieSession.addEventListener(new DebugAgendaEventListener());
UnsafeStaticValuesHolder.setVar1(1);
kieSession.insert(new TestObject(1));
assertEquals(2, kieSession.fireAllRules() );
}
{code}
> Alpha node not shared with static function evaluation
> -----------------------------------------------------
>
> Key: DROOLS-1404
> URL: https://issues.jboss.org/browse/DROOLS-1404
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
>
> The following code when placed in Misc2Test exhibit the problem
> {code:java}
> public static class TestStaticUtils {
> public static int return1() {
> return 1;
> }
> }
>
> @Test
> public void testCheck2() {
> String drl = "package c;\n" + // <<- keep this package name
> "\n" +
> "import " + TestObject.class.getCanonicalName() + "\n" +
> "\n" +
> "rule fileBrule1 when\n" +
> " TestObject(value == 1)\n" +
> "then\n" +
> "end"
> ;
>
> String drl2 = "package iTransiberian;\n" + // <<- keep this package name
> "\n" +
> "import " + TestObject.class.getCanonicalName() + "\n" +
> "import " + TestStaticUtils.class.getCanonicalName() + "\n" +
> "\n" +
> "rule fileArule1 when\n" +
> " $t : String()\n" +
> " TestObject(value == TestStaticUtils.return1() )\n" +
> "then\n" +
> "end\n"+
> "rule fileArule2 when\n" + // <<- keep this rule
> " $t : String()\n" +
> " TestObject(value == 0 )\n" +
> "then\n" +
> "end\n" +
> ""
> ;
> KieSession kieSession = new KieHelper()
> .addContent(drl2, ResourceType.DRL)
> .addContent(drl, ResourceType.DRL)
> .build().newKieSession();
>
> ReteDumper.dumpRete(kieSession);
> System.out.println(drl);
> System.out.println(drl2);
> kieSession.addEventListener(new DebugAgendaEventListener());
> kieSession.insert("test");
> kieSession.insert(new TestObject(1));
> assertEquals(2, kieSession.fireAllRules() );
> }
> {code}
> Conducting further analysis...
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 5 months
[JBoss JIRA] (DROOLS-1404) Alpha node not shared with static function evaluation
by Matteo Mortari (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1404?page=com.atlassian.jira.plugi... ]
Matteo Mortari updated DROOLS-1404:
-----------------------------------
Comment: was deleted
(was: -Further analysis confirms suspects as per discussion with Mario, there are actually two issues, one a false alpha node sharing, another a problem with the indexing.-
-Placing the following in the Misc2Test will manifest the two issues separately-
previous tests were in conflict with the contract of the alpha nodes.
Even while evaluating a (static) function, the value should be expected constant; there is no functionality to instruct the engine a function has changed in value, as it is per the alpha node contract memoized. Therefore previous test broke this contract and not valid test.)
> Alpha node not shared with static function evaluation
> -----------------------------------------------------
>
> Key: DROOLS-1404
> URL: https://issues.jboss.org/browse/DROOLS-1404
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
>
> The following code when placed in Misc2Test exhibit the problem
> {code:java}
> public static class TestStaticUtils {
> public static int return1() {
> return 1;
> }
> }
>
> @Test
> public void testCheck2() {
> String drl = "package c;\n" + // <<- keep this package name
> "\n" +
> "import " + TestObject.class.getCanonicalName() + "\n" +
> "\n" +
> "rule fileBrule1 when\n" +
> " TestObject(value == 1)\n" +
> "then\n" +
> "end"
> ;
>
> String drl2 = "package iTransiberian;\n" + // <<- keep this package name
> "\n" +
> "import " + TestObject.class.getCanonicalName() + "\n" +
> "import " + TestStaticUtils.class.getCanonicalName() + "\n" +
> "\n" +
> "rule fileArule1 when\n" +
> " $t : String()\n" +
> " TestObject(value == TestStaticUtils.return1() )\n" +
> "then\n" +
> "end\n"+
> "rule fileArule2 when\n" + // <<- keep this rule
> " $t : String()\n" +
> " TestObject(value == 0 )\n" +
> "then\n" +
> "end\n" +
> ""
> ;
> KieSession kieSession = new KieHelper()
> .addContent(drl2, ResourceType.DRL)
> .addContent(drl, ResourceType.DRL)
> .build().newKieSession();
>
> ReteDumper.dumpRete(kieSession);
> System.out.println(drl);
> System.out.println(drl2);
> kieSession.addEventListener(new DebugAgendaEventListener());
> kieSession.insert("test");
> kieSession.insert(new TestObject(1));
> assertEquals(2, kieSession.fireAllRules() );
> }
> {code}
> Conducting further analysis...
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 5 months
[JBoss JIRA] (WFCORE-1752) The deployment-overlay command fails to redeploy affected deployments
by ehsavoie Hugonnet (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1752?page=com.atlassian.jira.plugi... ]
ehsavoie Hugonnet commented on WFCORE-1752:
-------------------------------------------
I'm looking into this so we have an easier path for [~jdenise].
> The deployment-overlay command fails to redeploy affected deployments
> ---------------------------------------------------------------------
>
> Key: WFCORE-1752
> URL: https://issues.jboss.org/browse/WFCORE-1752
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.0.0.Alpha5
> Reporter: ehsavoie Hugonnet
> Assignee: Jean-Francois Denise
>
> The deployment-overlay command fails to redeploy affected deployments if the runtime-name isn't the same as the deployment name. Since affected deployment to be redeployed should be running the couple runtime-name + enabled == true should be used to define which deployments are affected instead of using the deployment name since the name used in overlay is the runtime-name
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 5 months