[JBoss JIRA] (DROOLS-1361) Infinite loop when updating a fact inside a shared subnetwork
by Alessandro Lazarotti (JIRA)
Alessandro Lazarotti created DROOLS-1361:
--------------------------------------------
Summary: Infinite loop when updating a fact inside a shared subnetwork
Key: DROOLS-1361
URL: https://issues.jboss.org/browse/DROOLS-1361
Project: Drools
Issue Type: Bug
Components: core engine
Reporter: Alessandro Lazarotti
Assignee: Mario Fusco
Priority: Critical
Updating a fact evaluated inside a shared subnetwork may cause an infinite loop as demonstrated by the following unit test:
{code}
@Test(timeout = 10000L)
public void testUpdateOnSharedSubnetwork() {
String drl =
"import " + AtomicInteger.class.getCanonicalName() + ";\n" +
"global java.util.List list;\n" +
"rule R1y when\n" +
" AtomicInteger() \n" +
" Number() from accumulate ( AtomicInteger( ) and $s : String( ) ; count($s) )" +
" eval(false)\n" +
"then\n" +
"end\n" +
"\n" +
"rule R2 when\n" +
" $i : AtomicInteger( get() < 3 )\n" +
"then\n" +
" $i.incrementAndGet();" +
" insert(\"test\" + $i.get());" +
" update($i);" +
"end\n" +
"\n" +
"rule R1x when\n" +
" AtomicInteger() \n" +
" $c : Number() from accumulate ( AtomicInteger( ) and $s : String( ) ; count($s) )\n" +
" eval(true)\n" +
"then\n" +
" list.add($c);" +
"end\n";
KieSession kieSession = new KieHelper().addContent( drl, ResourceType.DRL )
.build().newKieSession();
List<Number> list = new ArrayList<Number>();
kieSession.setGlobal( "list", list );
kieSession.insert( new AtomicInteger( 0 ) );
kieSession.insert( "test" );
kieSession.fireAllRules();
assertEquals(1, list.size());
assertEquals(4, list.get(0).intValue());
}
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 8 months
[JBoss JIRA] (DROOLS-1360) Infinite loop when updating a fact inside a shared subnetwork
by Mario Fusco (JIRA)
Mario Fusco created DROOLS-1360:
-----------------------------------
Summary: Infinite loop when updating a fact inside a shared subnetwork
Key: DROOLS-1360
URL: https://issues.jboss.org/browse/DROOLS-1360
Project: Drools
Issue Type: Bug
Components: core engine
Reporter: Mario Fusco
Assignee: Mario Fusco
Priority: Critical
Updating a fact evaluated inside a shared subnetwork may cause an infinite loop as demonstrated by the following unit test:
{code}
@Test(timeout = 10000L)
public void testUpdateOnSharedSubnetwork() {
String drl =
"import " + AtomicInteger.class.getCanonicalName() + ";\n" +
"global java.util.List list;\n" +
"rule R1y when\n" +
" AtomicInteger() \n" +
" Number() from accumulate ( AtomicInteger( ) and $s : String( ) ; count($s) )" +
" eval(false)\n" +
"then\n" +
"end\n" +
"\n" +
"rule R2 when\n" +
" $i : AtomicInteger( get() < 3 )\n" +
"then\n" +
" $i.incrementAndGet();" +
" insert(\"test\" + $i.get());" +
" update($i);" +
"end\n" +
"\n" +
"rule R1x when\n" +
" AtomicInteger() \n" +
" $c : Number() from accumulate ( AtomicInteger( ) and $s : String( ) ; count($s) )\n" +
" eval(true)\n" +
"then\n" +
" list.add($c);" +
"end\n";
KieSession kieSession = new KieHelper().addContent( drl, ResourceType.DRL )
.build().newKieSession();
List<Number> list = new ArrayList<Number>();
kieSession.setGlobal( "list", list );
kieSession.insert( new AtomicInteger( 0 ) );
kieSession.insert( "test" );
kieSession.fireAllRules();
assertEquals(1, list.size());
assertEquals(4, list.get(0).intValue());
}
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 8 months
[JBoss JIRA] (ELY-745) Using attribute name instead of OID in x500-attribute-principal-decoder
by David Lloyd (JIRA)
[ https://issues.jboss.org/browse/ELY-745?page=com.atlassian.jira.plugin.sy... ]
David Lloyd commented on ELY-745:
---------------------------------
I like the idea of a simple properties-file database as proposed. I think we'll still need constants for them though, as otherwise we'll have to do things like:
{code}
String cnOid = OidDatabaseThingy.getOidByName("cn");
{code}
I think we can initialize the constants from the database though, going forward.
As far as conflicts go, yes OIDs are unique, however the string names may not be globally unique (though within LDAP at least, they should be). Note that we use OIDs for a wide variety of other purposes than LDAP though.
> Using attribute name instead of OID in x500-attribute-principal-decoder
> -----------------------------------------------------------------------
>
> Key: ELY-745
> URL: https://issues.jboss.org/browse/ELY-745
> Project: WildFly Elytron
> Issue Type: Bug
> Components: X.500
> Reporter: Jan Kalina
> Assignee: Jan Kalina
> Priority: Critical
>
> Using OIDs not really convenient.
> See description of JBEAP-6100 for more details.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 8 months
[JBoss JIRA] (WFCORE-1985) :read-resource-description operation should consistently order resources by alphabet
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1985?page=com.atlassian.jira.plugi... ]
Brian Stansberry commented on WFCORE-1985:
------------------------------------------
I prefer the sort simply by name, excluding group. But, we need to understand why we are getting the sorting we are seeing and then discuss what might change if we adjust things. Perhaps there is something about iiop that causes group to not matter to the r-r sorting, but it does matter elsewhere. We need to understand that.
> :read-resource-description operation should consistently order resources by alphabet
> ------------------------------------------------------------------------------------
>
> Key: WFCORE-1985
> URL: https://issues.jboss.org/browse/WFCORE-1985
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Reporter: Michal Jurc
> Assignee: Ken Wills
>
> While {{:read-resource-description}} returns an ordered list of resources with their descriptions for most resources, some resources do not return result consistent with this (resources ordered by alphabet).
> Affected resources:
> * {{/subsystem=iiop-openjdk:read-resource-description()}} returns unordered list of resources and their descriptions, while {{/subsystem=iiop-openjdk:read-resource()}} returns ordered list
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 8 months
[JBoss JIRA] (WFCORE-1992) CLI inconsistently parse {} in another object as UNDEFINED
by Jan Kalina (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1992?page=com.atlassian.jira.plugi... ]
Jan Kalina updated WFCORE-1992:
-------------------------------
Description:
CLI interprets {} as blank object in resource attribute (correct), but as UNDEFINED in object attribute. (in model parameter of *performRuntime* of ADD operation)
{code:java}
/subsystem=elytron/properties-realm=realm:add(users-properties={path=$SOME_PATH},groups-properties={})
=> groups-properties = OBJECT {}
{code}
{code:java}
/subsystem=elytron/ldap-realm=ldap-realm8:add(dir-context=local-ldap,identity-mapping={rdn-identifier=uid,otp-credential-mapper={}})
=> otp-credential-mapper=UNDEFINED
{code}
was:
CLI interprets {} as blank object in resource attribute, but as UNDEFINED in object attribute. (in model parameter of *performRuntime* of ADD operation)
{code:java}
/subsystem=elytron/properties-realm=realm:add(users-properties={path=$SOME_PATH},groups-properties={})
=> groups-properties = OBJECT {}
{code}
{code:java}
/subsystem=elytron/ldap-realm=ldap-realm8:add(dir-context=local-ldap,identity-mapping={rdn-identifier=uid,otp-credential-mapper={}})
=> otp-credential-mapper=UNDEFINED
{code}
> CLI inconsistently parse {} in another object as UNDEFINED
> ----------------------------------------------------------
>
> Key: WFCORE-1992
> URL: https://issues.jboss.org/browse/WFCORE-1992
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.0.0.Alpha12
> Reporter: Jan Kalina
> Priority: Minor
>
> CLI interprets {} as blank object in resource attribute (correct), but as UNDEFINED in object attribute. (in model parameter of *performRuntime* of ADD operation)
> {code:java}
> /subsystem=elytron/properties-realm=realm:add(users-properties={path=$SOME_PATH},groups-properties={})
> => groups-properties = OBJECT {}
> {code}
> {code:java}
> /subsystem=elytron/ldap-realm=ldap-realm8:add(dir-context=local-ldap,identity-mapping={rdn-identifier=uid,otp-credential-mapper={}})
> => otp-credential-mapper=UNDEFINED
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 8 months
[JBoss JIRA] (WFCORE-1992) CLI inconsistently parse {} in another object as UNDEFINED
by Jan Kalina (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1992?page=com.atlassian.jira.plugi... ]
Jan Kalina updated WFCORE-1992:
-------------------------------
Description:
CLI interprets {} as blank object in resource attribute, but as UNDEFINED in object attribute. (in model parameter of *performRuntime* of ADD operation)
{code:java}
/subsystem=elytron/properties-realm=realm:add(users-properties={path=$SOME_PATH},groups-properties={})
=> groups-properties = OBJECT {}
{code}
{code:java}
/subsystem=elytron/ldap-realm=ldap-realm8:add(dir-context=local-ldap,identity-mapping={rdn-identifier=uid,otp-credential-mapper={}})
=> otp-credential-mapper=UNDEFINED
{code}
was:
CLI interprets
{code:java}
/subsystem=elytron/properties-realm=realm:add(users-properties={path=$SOME_PATH},groups-properties={})
{code}
with *groups-properties=OBJECT{}* in input of performRuntime() of ADD operation.
But if the {} is inside of another object, it gives *otp-credential-mapper=UNDEFINED* instead...
{code:java}
/subsystem=elytron/ldap-realm=ldap-realm8:add(dir-context=local-ldap,identity-mapping={rdn-identifier=uid,otp-credential-mapper={}})
{code}
> CLI inconsistently parse {} in another object as UNDEFINED
> ----------------------------------------------------------
>
> Key: WFCORE-1992
> URL: https://issues.jboss.org/browse/WFCORE-1992
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.0.0.Alpha12
> Reporter: Jan Kalina
> Priority: Minor
>
> CLI interprets {} as blank object in resource attribute, but as UNDEFINED in object attribute. (in model parameter of *performRuntime* of ADD operation)
> {code:java}
> /subsystem=elytron/properties-realm=realm:add(users-properties={path=$SOME_PATH},groups-properties={})
> => groups-properties = OBJECT {}
> {code}
> {code:java}
> /subsystem=elytron/ldap-realm=ldap-realm8:add(dir-context=local-ldap,identity-mapping={rdn-identifier=uid,otp-credential-mapper={}})
> => otp-credential-mapper=UNDEFINED
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 8 months
[JBoss JIRA] (WFCORE-1992) CLI inconsistently parse {} in another object as UNDEFINED
by Jan Kalina (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1992?page=com.atlassian.jira.plugi... ]
Jan Kalina updated WFCORE-1992:
-------------------------------
Affects Version/s: 3.0.0.Alpha12
> CLI inconsistently parse {} in another object as UNDEFINED
> ----------------------------------------------------------
>
> Key: WFCORE-1992
> URL: https://issues.jboss.org/browse/WFCORE-1992
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.0.0.Alpha12
> Reporter: Jan Kalina
> Priority: Minor
>
> CLI interprets
> {code:java}
> /subsystem=elytron/properties-realm=realm:add(users-properties={path=$SOME_PATH},groups-properties={})
> {code}
> with *groups-properties=OBJECT{}* in input of performRuntime() of ADD operation.
> But if the {} is inside of another object, it gives *otp-credential-mapper=UNDEFINED* instead...
> {code:java}
> /subsystem=elytron/ldap-realm=ldap-realm8:add(dir-context=local-ldap,identity-mapping={rdn-identifier=uid,otp-credential-mapper={}})
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 8 months