[JBoss JIRA] (DROOLS-1245) Document limitation of (legacy) Accumulate CE Alternate Syntax: single function with return type
by Matteo Mortari (JIRA)
Matteo Mortari created DROOLS-1245:
--------------------------------------
Summary: Document limitation of (legacy) Accumulate CE Alternate Syntax: single function with return type
Key: DROOLS-1245
URL: https://issues.jboss.org/browse/DROOLS-1245
Project: Drools
Issue Type: Enhancement
Components: docs
Affects Versions: 6.4.0.Final
Reporter: Matteo Mortari
Assignee: Matteo Mortari
Document limitations and common pitfalls:
h2. from+accumulate does not iterate
This does NOT iterate over the elements of the accumulate function:
{code:java}
rule R when
$theFrom : Object() from accumulate(MyPerson( $val : name );
collectList( $val ) )
then
list.add($theFrom);
end
{code}
and in fact the binded $theFrom : Object() is the List returned by the collect list.
While normally the "from" iterates over the element of list/iterable collections.
{code:java}
rule R1 when
$list : List( )
$s : Integer() from $list
then
out.add($s);
end
{code}
h2. limited scope of compile-time checks
Compile-time checks are performed for Accumulate Functions returning a single result.
Compile-time checks are NOT performed for iterable Accumulate Functions, the case when the accumulate function returns a collection.
With ref to DROOLS-1243.
For instance this fails at compilation:
{code:java}
rule R when
$theFrom : BigDecimal() from accumulate(MyPerson( $val : age );
sum( $val ) )
then
list.add($theFrom);
end
{code}
but the following does passes compilation:
{code:java}
rule R when
$theFrom : String() from accumulate(MyPerson( $val : name );
collectList( $val ) )
then
list.add($theFrom);
end
{code}
only to fail later at runtime with CCE:
{code:java}
Caused by: java.lang.ClassCastException: java.util.Collections$UnmodifiableRandomAccessList cannot be cast to java.lang.String
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 2 months
[JBoss JIRA] (ELY-462) DirContext suppliing service to be used in LDAP realm
by Jan Kalina (JIRA)
[ https://issues.jboss.org/browse/ELY-462?page=com.atlassian.jira.plugin.sy... ]
Jan Kalina updated ELY-462:
---------------------------
Description:
There will be DirContext suppling service, which will be referenced by LDAP realm:
* output of service will be ExceptionSupplier<DirContext>, but the returning DirContext will be only delegator, which will call real DirContext and instead of close() it will do returnContext()
Problematic place: DirectEvidenceVerifier
* context can be copied using (Context)ctx.lookup("")
* probably "we can take a DirContext obtain the environment settings from it and just place in the name and credential being tested and create a new contex - if that is possible we can eliminate needing our own factory interface if possible "
was:
There will be DirContext suppling service, which will be referenced by realm:
* output of service will be ExceptionSupplier<DirContext>, but the returning DirContext will be only delegator, which will call real DirContext and instead of close() it will do returnContext()
Problematic place: DirectEvidenceVerifier
* context can be copied using (Context)ctx.lookup("")
*
> DirContext suppliing service to be used in LDAP realm
> -----------------------------------------------------
>
> Key: ELY-462
> URL: https://issues.jboss.org/browse/ELY-462
> Project: WildFly Elytron
> Issue Type: Task
> Reporter: Jan Kalina
> Assignee: Jan Kalina
> Priority: Minor
>
> There will be DirContext suppling service, which will be referenced by LDAP realm:
> * output of service will be ExceptionSupplier<DirContext>, but the returning DirContext will be only delegator, which will call real DirContext and instead of close() it will do returnContext()
> Problematic place: DirectEvidenceVerifier
> * context can be copied using (Context)ctx.lookup("")
> * probably "we can take a DirContext obtain the environment settings from it and just place in the name and credential being tested and create a new contex - if that is possible we can eliminate needing our own factory interface if possible "
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 2 months
[JBoss JIRA] (ELY-462) DirContext suppliing service to be used in LDAP realm
by Jan Kalina (JIRA)
[ https://issues.jboss.org/browse/ELY-462?page=com.atlassian.jira.plugin.sy... ]
Jan Kalina updated ELY-462:
---------------------------
Description:
There will be DirContext suppling service, which will be referenced by realm:
* output of service will be ExceptionSupplier<DirContext>, but the returning DirContext will be only delegator, which will call real DirContext and instead of close() it will do returnContext()
Problematic place: DirectEvidenceVerifier
* context can be copied using (Context)ctx.lookup("")
*
was:
There will be DirContext suppling service, which will be referenced by realm:
* output of service will be ExceptionSupplier<DirContext>, but the returning DirContext will be only delegator, which will call real DirContext and instead of close() it will do returnContext()
> DirContext suppliing service to be used in LDAP realm
> -----------------------------------------------------
>
> Key: ELY-462
> URL: https://issues.jboss.org/browse/ELY-462
> Project: WildFly Elytron
> Issue Type: Task
> Reporter: Jan Kalina
> Assignee: Jan Kalina
> Priority: Minor
>
> There will be DirContext suppling service, which will be referenced by realm:
> * output of service will be ExceptionSupplier<DirContext>, but the returning DirContext will be only delegator, which will call real DirContext and instead of close() it will do returnContext()
> Problematic place: DirectEvidenceVerifier
> * context can be copied using (Context)ctx.lookup("")
> *
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 2 months
[JBoss JIRA] (WFCORE-1682) Missleading tab completion for edit-batch-line command
by Jean-Francois Denise (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1682?page=com.atlassian.jira.plugi... ]
Jean-Francois Denise updated WFCORE-1682:
-----------------------------------------
Git Pull Request: https://github.com/wildfly/wildfly-core/pull/1720
> Missleading tab completion for edit-batch-line command
> ------------------------------------------------------
>
> Key: WFCORE-1682
> URL: https://issues.jboss.org/browse/WFCORE-1682
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Reporter: Petr Kremensky
> Assignee: Jean-Francois Denise
>
> Tab completion for edit-batch-list command suggest to use --line-number as a command option, but that is not how the command works.
> *command usage*
> {noformat}
> [standalone@localhost:9990 /] batch
> [standalone@localhost:9990 / #] :read-resource
> [standalone@localhost:9990 / #] list-batch
> #1 /:read-resource
> [standalone@localhost:9990 / #] edit-batch-line 1 :read-attribute(name=launch-type)
> #1 :read-attribute(name=launch-type)
> [standalone@localhost:9990 / #] list-batch
> #1 :read-attribute(name=launch-type)
> {noformat}
> *actual*
> {noformat}
> [standalone@localhost:9990 / #] edit-batch-line <TAB>
> [standalone@localhost:9990 / #] edit-batch-line --<TAB>
> --help --line-number
> [standalone@localhost:9990 / #] edit-batch-line --line-number=1 :read-attribute(name=launch-type)
> Failed to parse line number '--line-number=1': For input string: "--line-number=1"
> {noformat}
> {{--line-number}} shouldn't be offered by tab completion for the command.
> Misleading tab completion ends up with syntax error.
> *expected*
> {noformat}
> [standalone@localhost:9990 / #] edit-batch-line <TAB>
> --help
> {noformat}
> The issue is a regression against EAP 7.0.0 release.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 2 months
[JBoss JIRA] (WFCORE-1687) WFLYCTL0357 warning upon undeploying any deployment
by Martin Simka (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1687?page=com.atlassian.jira.plugi... ]
Martin Simka moved JBEAP-5507 to WFCORE-1687:
---------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-1687 (was: JBEAP-5507)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Server
(was: Domain Management)
Affects Version/s: (was: 7.1.0.DR1)
> WFLYCTL0357 warning upon undeploying any deployment
> ---------------------------------------------------
>
> Key: WFCORE-1687
> URL: https://issues.jboss.org/browse/WFCORE-1687
> Project: WildFly Core
> Issue Type: Bug
> Components: Server
> Reporter: Martin Simka
> Assignee: Brian Stansberry
>
> EAP produces following warning upon undeployment:
> {code}WARN [org.jboss.as.controller] (management-handler-thread - 4) WFLYCTL0357: Notification of type deployment-undeployed is not described for the resource at the address []{code}
> The warning is produced for both managed and unmanaged deployments.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 2 months
[JBoss JIRA] (DROOLS-1244) TimedRuleExectionOption typing mistake
by Matteo Mortari (JIRA)
Matteo Mortari created DROOLS-1244:
--------------------------------------
Summary: TimedRuleExectionOption typing mistake
Key: DROOLS-1244
URL: https://issues.jboss.org/browse/DROOLS-1244
Project: Drools
Issue Type: Enhancement
Affects Versions: 7.0.0.Beta1
Reporter: Matteo Mortari
Assignee: Matteo Mortari
Priority: Minor
TimedRuleExectionOption typo in class definition and documentation.
Impacts:
* code changes
* System property / configuration
* to be properly documented (as a breaking change)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 2 months