[JBoss JIRA] (WFCORE-4041) ManagementRealm does now show plain-text attribute in default read-resource output
by Michal Petrov (Jira)
[ https://issues.redhat.com/browse/WFCORE-4041?page=com.atlassian.jira.plug... ]
Michal Petrov commented on WFCORE-4041:
---------------------------------------
[~dlofthouse], [~jdenise] I found out fixing this breaks CLI, specifically "security enable-sasl-management …", as CLI tries to construct the composite operation it performs a lookup for a properties-realm (relying on "plain-text" not being set) - {{ElytronUtil.buildUsersResource()}}. As far as I can see there is no parameter to set the "plain-text" so the CLI operation will currently fail to find a properties-realm with "plain-text=true", I'm assuming that's a bug?
> ManagementRealm does now show plain-text attribute in default read-resource output
> ----------------------------------------------------------------------------------
>
> Key: WFCORE-4041
> URL: https://issues.redhat.com/browse/WFCORE-4041
> Project: WildFly Core
> Issue Type: Bug
> Components: Management
> Reporter: Justin Cook
> Assignee: Michal Petrov
> Priority: Major
>
> Currently running /subsystem=elytron/properties-realm=ManagementRealm:read-resource() results in the output:
> {code}
> {
> "outcome" => "success",
> "result" => {
> "groups-attribute" => "groups",
> "groups-properties" => {
> "path" => "mgmt-groups.properties",
> "relative-to" => "jboss.server.config.dir"
> },
> "users-properties" => {
> "path" => "mgmt-users.properties",
> "relative-to" => "jboss.server.config.dir",
> "digest-realm-name" => "ManagementRealm"
> }
> }
> }
> {code}
> which is missing the plain-text attribute
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 3 months
[JBoss JIRA] (DROOLS-5216) Rule compilation error when binding fields indexed with square brackets
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-5216?page=com.atlassian.jira.plug... ]
Mario Fusco resolved DROOLS-5216.
---------------------------------
Resolution: Done
Fixed by https://github.com/kiegroup/drools/commit/719803b00d91c962a5aa0383c4db3a6...
> Rule compilation error when binding fields indexed with square brackets
> -----------------------------------------------------------------------
>
> Key: DROOLS-5216
> URL: https://issues.redhat.com/browse/DROOLS-5216
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.35.0.Final
> Reporter: Matteo Casalino
> Assignee: Mario Fusco
> Priority: Major
> Attachments: binding-field-indexed-with-square-brackets.zip
>
>
> Executable model rule compilation fails on patters that bind a collection field indexed with square brackets
> Example of DRL that fails to compile:
> {noformat}
> rule "binding field indexed with square brackets"
> when Pojo($firstItem : integerList[0])
> Pojo(integerList[this.integerList.size()-1] == $firstItem)
> then
> end
> {noformat}
> Error:
> {noformat}
> Message [id=1, level=ERROR, path=src/main/java/org/drools/reproducer/RulesE96881902F91EBF30C7D6404720A1A94RuleMethods0.java, line=29, column=138
> text=no suitable method found for bind(org.drools.model.Variable<java.util.Map>,(org.drool[...]et(0))
> method org.drools.model.PatternDSL.PatternDef.<A>bind(org.drools.model.Variable<A>,org.drools.model.functions.Function1<org.drools.reproducer.Pojo,A>) is not applicable
> (inference variable A has incompatible bounds
> equality constraints: java.util.Map
> lower bounds: java.lang.Integer)
> method org.drools.model.PatternDSL.PatternDef.<A>bind(org.drools.model.Variable<A>,org.drools.model.functions.Function1<org.drools.reproducer.Pojo,A>,org.drools.model.PatternDSL.ReactOn) is not applicable
> (cannot infer type-variable(s) A
> (actual and formal argument lists differ in length))
> method org.drools.model.PatternDSL.PatternDef.<A,U>bind(org.drools.model.Variable<A>,org.drools.model.Variable<U>,org.drools.model.functions.Function1<U,A>) is not applicable
> (cannot infer type-variable(s) A,U
> (actual and formal argument lists differ in length))
> {noformat}
> The example works fine when compiling without executable model.
> Furthermore, the same example expressed with OOPath fails to compile *both with and without executable model*:
> {noformat}
> rule "binding field indexed with square brackets in OOPath"
> when Pojo($firstItem : /integerList[0])
> Pojo(/integerList[this.integerList.size()-1] == $firstItem)
> then
> end
> {noformat}
> Error without executable model:
> {noformat}
> Message [id=1, kieBase=binding-field-indexed-with-square-brackets, level=ERROR, path=org/drools/reproducer/rules.drl, line=4, column=0
> text=Unable to Analyse Expression /integerList[this.integerList.size()-1] == $firstItem:
> [Error: Missing left node]
> [Near : {... /integerList[this.integerList.size()-1] == $firstItem ....}]
> {noformat}
> Error with executable model:
> {noformat}
> Message [id=1, kieBase=binding-field-indexed-with-square-brackets, level=ERROR, path=org/drools/reproducer/rules.drl, line=-1, column=0
> text=Unknown field integerList on class java.lang.Integer]
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 3 months
[JBoss JIRA] (DROOLS-5217) Executable model compilation fails when binding a list from double square bracket
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-5217?page=com.atlassian.jira.plug... ]
Mario Fusco updated DROOLS-5217:
--------------------------------
Sprint: 2020 Week 13-15 (from Mar 23)
> Executable model compilation fails when binding a list from double square bracket
> ---------------------------------------------------------------------------------
>
> Key: DROOLS-5217
> URL: https://issues.redhat.com/browse/DROOLS-5217
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.35.0.Final
> Reporter: Matteo Casalino
> Assignee: Mario Fusco
> Priority: Major
> Attachments: binding-list-from-double-square-bracket.zip
>
>
> Executable model rule compilation fails when trying to bind a _List_ from a double square bracket
> Example of DRL that fails to compile:
> {noformat}
> rule "binding field indexed with square brackets"
> when $boundList: java.util.List() from [[1,2,3]]
> Pojo($boundList.containsAll(integerList))
> then
> end
> {noformat}
> Error:
> {noformat}
> com.github.javaparser.ParseProblemException: Encountered unexpected token: "[" "["
> at line 1, column 1.
>
> Was expecting one of:
>
> "!"
> "("
> "+"
> "++"
> ...
> {noformat}
> The example works fine when compiling without executable model.
> We acknowledge that there are better and more efficient ways to achieve the same result as the above example, but there are perhaps other use-cases for the double square bracket mvel expression. As it is supported in DRL, should it be supported with executable model too?
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 3 months
[JBoss JIRA] (DROOLS-5217) Executable model compilation fails when binding a list from double square bracket
by Matteo Casalino (Jira)
Matteo Casalino created DROOLS-5217:
---------------------------------------
Summary: Executable model compilation fails when binding a list from double square bracket
Key: DROOLS-5217
URL: https://issues.redhat.com/browse/DROOLS-5217
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.35.0.Final
Reporter: Matteo Casalino
Assignee: Mario Fusco
Attachments: binding-list-from-double-square-bracket.zip
Executable model rule compilation fails when trying to bind a _List_ from a double square bracket
Example of DRL that fails to compile:
{noformat}
rule "binding field indexed with square brackets"
when $boundList: java.util.List() from [[1,2,3]]
Pojo($boundList.containsAll(integerList))
then
end
{noformat}
Error:
{noformat}
com.github.javaparser.ParseProblemException: Encountered unexpected token: "[" "["
at line 1, column 1.
Was expecting one of:
"!"
"("
"+"
"++"
...
{noformat}
The example works fine when compiling without executable model.
We acknowledge that there are better and more efficient ways to achieve the same result as the above example, but there are perhaps other use-cases for the double square bracket mvel expression. As it is supported in DRL, should it be supported with executable model too?
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 3 months