[JBoss JIRA] (DROOLS-3558) "NoSuchElementException: No value present" with executable-model, Map and binding
by Mario Fusco (Jira)
[ https://issues.jboss.org/browse/DROOLS-3558?page=com.atlassian.jira.plugi... ]
Mario Fusco resolved DROOLS-3558.
---------------------------------
Resolution: Done
Fixed by https://github.com/kiegroup/drools/commit/c6d69e2fcb3eb8544cebf611ef9ccf9...
> "NoSuchElementException: No value present" with executable-model, Map and binding
> ---------------------------------------------------------------------------------
>
> Key: DROOLS-3558
> URL: https://issues.jboss.org/browse/DROOLS-3558
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.16.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Mario Fusco
> Priority: Major
> Labels: support
>
> When compiling a below rule with executable-model:
> {noformat}
> rule R1
> when
> $p : Person()
> $a : Address(number == $p.items[1])
> then
> end
> {noformat}
> it fails with the following error:
> {noformat}
> [ERROR] Tests run: 165, Failures: 0, Errors: 2, Skipped: 3, Time elapsed: 20.794 s <<< FAILURE! - in org.drools.modelcompiler.CompilerTest
> [ERROR] testMapWithBinding[FLOW_DSL](org.drools.modelcompiler.CompilerTest) Time elapsed: 0.02 s <<< ERROR!
> java.util.NoSuchElementException: No value present
> at java.util.Optional.get(Optional.java:135)
> at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionFromMethodCallOrField(ExpressionTyper.java:397)
> at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:211)
> at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpression(ExpressionTyper.java:108)
> at org.drools.modelcompiler.builder.generator.drlxparse.ConstraintParser.parseBinaryExpr(ConstraintParser.java:295)
> at org.drools.modelcompiler.builder.generator.drlxparse.ConstraintParser.getDrlxParseResult(ConstraintParser.java:111)
> at org.drools.modelcompiler.builder.generator.drlxparse.ConstraintParser.drlxParse(ConstraintParser.java:78)
> at org.drools.modelcompiler.builder.generator.visitor.pattern.PatternDSL.findAllConstraint(PatternDSL.java:124)
> at org.drools.modelcompiler.builder.generator.visitor.pattern.PatternDSL.buildPattern(PatternDSL.java:191)
> at org.drools.modelcompiler.builder.generator.visitor.ModelGeneratorVisitor.visit(ModelGeneratorVisitor.java:128)
> at org.drools.compiler.lang.descr.PatternDescr.accept(PatternDescr.java:267)
> at org.drools.modelcompiler.builder.generator.visitor.AndVisitor.visit(AndVisitor.java:29)
> at org.drools.modelcompiler.builder.generator.visitor.ModelGeneratorVisitor.visit(ModelGeneratorVisitor.java:69)
> at org.drools.modelcompiler.builder.generator.ModelGenerator.processRule(ModelGenerator.java:174)
> at org.drools.modelcompiler.builder.generator.ModelGenerator.generateModel(ModelGenerator.java:154)
> at org.drools.modelcompiler.builder.ModelBuilderImpl.compileKnowledgePackages(ModelBuilderImpl.java:144)
> at org.drools.modelcompiler.builder.ModelBuilderImpl.buildRules(ModelBuilderImpl.java:94)
> at org.drools.modelcompiler.builder.ModelBuilderImpl.buildPackages(ModelBuilderImpl.java:63)
> at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:108)
> at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:100)
> at org.drools.compiler.kie.builder.impl.AbstractKieProject.buildKnowledgePackages(AbstractKieProject.java:257)
> at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:74)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieProject(KieBuilderImpl.java:267)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:235)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:204)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:192)
> at org.drools.modelcompiler.BaseModelTest.createKieBuilder(BaseModelTest.java:142)
> at org.drools.modelcompiler.BaseModelTest.createKieBuilder(BaseModelTest.java:125)
> at org.drools.modelcompiler.BaseModelTest.getKieContainer(BaseModelTest.java:114)
> at org.drools.modelcompiler.BaseModelTest.getKieContainer(BaseModelTest.java:107)
> at org.drools.modelcompiler.BaseModelTest.getKieSession(BaseModelTest.java:103)
> at org.drools.modelcompiler.BaseModelTest.getKieSession(BaseModelTest.java:99)
> at org.drools.modelcompiler.CompilerTest.testMapWithBinding(CompilerTest.java:1457)
> ...
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 11 months
[JBoss JIRA] (DROOLS-3558) "NoSuchElementException: No value present" with executable-model, Map and binding
by Mario Fusco (Jira)
[ https://issues.jboss.org/browse/DROOLS-3558?page=com.atlassian.jira.plugi... ]
Mario Fusco reassigned DROOLS-3558:
-----------------------------------
Assignee: Mario Fusco (was: Luca Molteni)
> "NoSuchElementException: No value present" with executable-model, Map and binding
> ---------------------------------------------------------------------------------
>
> Key: DROOLS-3558
> URL: https://issues.jboss.org/browse/DROOLS-3558
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.16.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Mario Fusco
> Priority: Major
> Labels: support
>
> When compiling a below rule with executable-model:
> {noformat}
> rule R1
> when
> $p : Person()
> $a : Address(number == $p.items[1])
> then
> end
> {noformat}
> it fails with the following error:
> {noformat}
> [ERROR] Tests run: 165, Failures: 0, Errors: 2, Skipped: 3, Time elapsed: 20.794 s <<< FAILURE! - in org.drools.modelcompiler.CompilerTest
> [ERROR] testMapWithBinding[FLOW_DSL](org.drools.modelcompiler.CompilerTest) Time elapsed: 0.02 s <<< ERROR!
> java.util.NoSuchElementException: No value present
> at java.util.Optional.get(Optional.java:135)
> at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionFromMethodCallOrField(ExpressionTyper.java:397)
> at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:211)
> at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpression(ExpressionTyper.java:108)
> at org.drools.modelcompiler.builder.generator.drlxparse.ConstraintParser.parseBinaryExpr(ConstraintParser.java:295)
> at org.drools.modelcompiler.builder.generator.drlxparse.ConstraintParser.getDrlxParseResult(ConstraintParser.java:111)
> at org.drools.modelcompiler.builder.generator.drlxparse.ConstraintParser.drlxParse(ConstraintParser.java:78)
> at org.drools.modelcompiler.builder.generator.visitor.pattern.PatternDSL.findAllConstraint(PatternDSL.java:124)
> at org.drools.modelcompiler.builder.generator.visitor.pattern.PatternDSL.buildPattern(PatternDSL.java:191)
> at org.drools.modelcompiler.builder.generator.visitor.ModelGeneratorVisitor.visit(ModelGeneratorVisitor.java:128)
> at org.drools.compiler.lang.descr.PatternDescr.accept(PatternDescr.java:267)
> at org.drools.modelcompiler.builder.generator.visitor.AndVisitor.visit(AndVisitor.java:29)
> at org.drools.modelcompiler.builder.generator.visitor.ModelGeneratorVisitor.visit(ModelGeneratorVisitor.java:69)
> at org.drools.modelcompiler.builder.generator.ModelGenerator.processRule(ModelGenerator.java:174)
> at org.drools.modelcompiler.builder.generator.ModelGenerator.generateModel(ModelGenerator.java:154)
> at org.drools.modelcompiler.builder.ModelBuilderImpl.compileKnowledgePackages(ModelBuilderImpl.java:144)
> at org.drools.modelcompiler.builder.ModelBuilderImpl.buildRules(ModelBuilderImpl.java:94)
> at org.drools.modelcompiler.builder.ModelBuilderImpl.buildPackages(ModelBuilderImpl.java:63)
> at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:108)
> at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:100)
> at org.drools.compiler.kie.builder.impl.AbstractKieProject.buildKnowledgePackages(AbstractKieProject.java:257)
> at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:74)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieProject(KieBuilderImpl.java:267)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:235)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:204)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:192)
> at org.drools.modelcompiler.BaseModelTest.createKieBuilder(BaseModelTest.java:142)
> at org.drools.modelcompiler.BaseModelTest.createKieBuilder(BaseModelTest.java:125)
> at org.drools.modelcompiler.BaseModelTest.getKieContainer(BaseModelTest.java:114)
> at org.drools.modelcompiler.BaseModelTest.getKieContainer(BaseModelTest.java:107)
> at org.drools.modelcompiler.BaseModelTest.getKieSession(BaseModelTest.java:103)
> at org.drools.modelcompiler.BaseModelTest.getKieSession(BaseModelTest.java:99)
> at org.drools.modelcompiler.CompilerTest.testMapWithBinding(CompilerTest.java:1457)
> ...
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 11 months
[JBoss JIRA] (DROOLS-3521) [DMN Designer] Data Types - Constraints - "Range" should not appear for String Data Types
by Guilherme Carreiro (Jira)
[ https://issues.jboss.org/browse/DROOLS-3521?page=com.atlassian.jira.plugi... ]
Guilherme Carreiro edited comment on DROOLS-3521 at 2/4/19 11:51 AM:
---------------------------------------------------------------------
As discussed with [~tirelli] during the scrum-meeting today, this is not a requirement anymore. Thus, closing the JIRA.
was (Author: karreiro):
This is not a requirement anymore. Thus, closing the JIRA.
> [DMN Designer] Data Types - Constraints - "Range" should not appear for String Data Types
> -----------------------------------------------------------------------------------------
>
> Key: DROOLS-3521
> URL: https://issues.jboss.org/browse/DROOLS-3521
> Project: Drools
> Issue Type: Task
> Components: DMN Editor
> Reporter: Guilherme Carreiro
> Assignee: Guilherme Carreiro
> Priority: Major
> Labels: drools-tools
> Attachments: base-dialog.png
>
>
> In the Constraints base dialog, the "Range" option should not be shown for {{String}} Data Types.
> !base-dialog.png|thumbnail!
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 11 months
[JBoss JIRA] (WFCORE-4309) Value validator for 'host-context-map' attribute of 'server-ssl-sni-context' resource
by Darran Lofthouse (Jira)
[ https://issues.jboss.org/browse/WFCORE-4309?page=com.atlassian.jira.plugi... ]
Darran Lofthouse reassigned WFCORE-4309:
----------------------------------------
Assignee: (was: Darran Lofthouse)
> Value validator for 'host-context-map' attribute of 'server-ssl-sni-context' resource
> -------------------------------------------------------------------------------------
>
> Key: WFCORE-4309
> URL: https://issues.jboss.org/browse/WFCORE-4309
> Project: WildFly Core
> Issue Type: Bug
> Components: Security
> Affects Versions: 7.0.0.Final
> Reporter: Jan Stourac
> Priority: Minor
>
> There is not validation for 'host-context-map' property values on key side. There is validation for the values that represents 'server-ssl-contexts', although, there is no validation for host matching part. E.g. writing attribute of this value is possible:
> {code}
> /subsystem=elytron/server-ssl-sni-context=serverSslSniCtx:write-attribute(name=host-context-map,value={"\\?.example.com"=validSslContext,"..example.com"="validSslContext", "\\*\\*.example.com"=validSslContext})
> {code}
> {code}
> "\\?.example.com"
> "..example.com"
> "\\*\\*.example.com"
> {code}
> even though, these are invalid host name matchers IMHO. It would be nice to identify these and report those to user immediately during the configuration attempt.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 11 months
[JBoss JIRA] (WFCORE-4309) Value validator for 'host-context-map' attribute of 'server-ssl-sni-context' resource
by Darran Lofthouse (Jira)
[ https://issues.jboss.org/browse/WFCORE-4309?page=com.atlassian.jira.plugi... ]
Darran Lofthouse moved WFLY-11657 to WFCORE-4309:
-------------------------------------------------
Project: WildFly Core (was: WildFly)
Key: WFCORE-4309 (was: WFLY-11657)
Component/s: Security
(was: Security)
Affects Version/s: 7.0.0.Final
(was: 15.0.0.Final)
(was: 15.0.1.Final)
> Value validator for 'host-context-map' attribute of 'server-ssl-sni-context' resource
> -------------------------------------------------------------------------------------
>
> Key: WFCORE-4309
> URL: https://issues.jboss.org/browse/WFCORE-4309
> Project: WildFly Core
> Issue Type: Bug
> Components: Security
> Affects Versions: 7.0.0.Final
> Reporter: Jan Stourac
> Assignee: Darran Lofthouse
> Priority: Minor
>
> There is not validation for 'host-context-map' property values on key side. There is validation for the values that represents 'server-ssl-contexts', although, there is no validation for host matching part. E.g. writing attribute of this value is possible:
> {code}
> /subsystem=elytron/server-ssl-sni-context=serverSslSniCtx:write-attribute(name=host-context-map,value={"\\?.example.com"=validSslContext,"..example.com"="validSslContext", "\\*\\*.example.com"=validSslContext})
> {code}
> {code}
> "\\?.example.com"
> "..example.com"
> "\\*\\*.example.com"
> {code}
> even though, these are invalid host name matchers IMHO. It would be nice to identify these and report those to user immediately during the configuration attempt.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 11 months