[JBoss JIRA] (WFCORE-2599) CLI complex object completer issues
by Jean-Francois Denise (JIRA)
[ https://issues.jboss.org/browse/WFCORE-2599?page=com.atlassian.jira.plugi... ]
Jean-Francois Denise reassigned WFCORE-2599:
--------------------------------------------
Assignee: Jean-Francois Denise
> CLI complex object completer issues
> -----------------------------------
>
> Key: WFCORE-2599
> URL: https://issues.jboss.org/browse/WFCORE-2599
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Reporter: Jean-Francois Denise
> Assignee: Jean-Francois Denise
>
> When a Complex Object property is ruled by filesystem or capability metadata, when the value to complete is already complete (full file name, full capability name), the completer miss behave.
> In this case, the completer doesn't propose the "," or "}" character that allows to continue Object completion.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (WFCORE-2599) CLI complex object completer issues
by Jean-Francois Denise (JIRA)
Jean-Francois Denise created WFCORE-2599:
--------------------------------------------
Summary: CLI complex object completer issues
Key: WFCORE-2599
URL: https://issues.jboss.org/browse/WFCORE-2599
Project: WildFly Core
Issue Type: Bug
Components: CLI
Reporter: Jean-Francois Denise
When a Complex Object property is ruled by filesystem or capability metadata, when the value to complete is already complete (full file name, full capability name), the completer miss behave.
In this case, the completer doesn't propose the "," or "}" character that allows to continue Object completion.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (DROOLS-1502) Incorrect "local" namespace resolution
by Matteo Mortari (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1502?page=com.atlassian.jira.plugi... ]
Matteo Mortari commented on DROOLS-1502:
----------------------------------------
The "second problem" can be actually demonstrated with a valid DMN example file e.g.:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
name="definitions"
namespace="https://www.drools.org/kie-dmn/definitions"
xmlns="http://www.omg.org/spec/DMN/20151101/dmn.xsd"
xmlns:feel="http://www.omg.org/spec/FEEL/20140401">
<itemDefinition label="MyType" name="MyType">
<typeRef>feel:string</typeRef>
<allowedValues constraintsType="enumeration">
<text>"a","b","c"</text>
</allowedValues>
</itemDefinition>
<inputData id="_3d560678-a126-4654-a686-bc6d941fe40b" name="MyInput">
<variable id="_053333df-1777-45f1-a6c7-56562fbdfdae" name="MyInput" typeRef="asd:MyType" xmlns:asd="https://www.drools.org/kie-dmn/definitions" />
</inputData>
<decision id="_497a5306-b2e8-4945-b8b5-82af2e2b99b5" name="MyDecision">
<variable id="_514d6d8d-5329-44fa-af91-a7e7addbadd8" name="MyDecision" typeRef="feel:string"/>
<informationRequirement>
<requiredInput href="#_3d560678-a126-4654-a686-bc6d941fe40b"/>
</informationRequirement>
<decisionTable hitPolicy="UNIQUE" id="_fff2b82e-2850-4826-adc9-4b1570d6fa91" outputLabel="MyDecision">
<input id="_e0471736-9a71-40c7-b5ca-bf367c6a3af9" label="MyInput">
<!-- TEST for this inputExpression the namespace `asd` is defined locally: -->
<inputExpression typeRef="asd:MyType" xmlns:asd="https://www.drools.org/kie-dmn/definitions" >
<text>MyInput</text>
</inputExpression>
</input>
<output id="_01796218-0d50-4ebe-bd2b-b4509318e334"/>
<rule id="_fd1835b6-5fe1-4fd9-a8e4-39b4f7083b24">
<inputEntry expressionLanguage="http://www.omg.org/spec/FEEL/20140401" id="_1c8b24c7-e722-40d7-8661-f03d402688d2">
<text>-</text>
</inputEntry>
<outputEntry id="_0b9d04fe-032b-4753-84dd-9838f6cdef53">
<text>"Decision taken"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
</definitions>
{code}
> Incorrect "local" namespace resolution
> --------------------------------------
>
> Key: DROOLS-1502
> URL: https://issues.jboss.org/browse/DROOLS-1502
> Project: Drools
> Issue Type: Bug
> Components: dmn engine
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
>
> The following example DMN model similar to an already existing in the code base is modified for "local" xmlns namespace definition:
> [ EDIT : there was a wrong DMN model example ]
> and it's throwing two distinct types of NPEs.. (follows)
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (DROOLS-1502) Incorrect "local" namespace resolution
by Matteo Mortari (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1502?page=com.atlassian.jira.plugi... ]
Matteo Mortari updated DROOLS-1502:
-----------------------------------
Comment: was deleted
(was: First problem is {{DMNCompilerImpl.resolveTypeRef()}} which was not considering local namespace for the QName as resolved by the unmarshalling
{code:java}
16:28:24.122 [main] ERROR o.k.d.core.compiler.DMNCompilerImpl.compile:78 - Error compiling model from source.
java.lang.NullPointerException: null
at org.kie.dmn.core.compiler.DMNCompilerImpl.resolveTypeRef(DMNCompilerImpl.java:398) [classes/:na]
at org.kie.dmn.core.compiler.DMNCompilerImpl.buildTypeDef(DMNCompilerImpl.java:290) [classes/:na]
at org.kie.dmn.core.compiler.DMNCompilerImpl.processItemDefinitions(DMNCompilerImpl.java:100) [classes/:na]
at org.kie.dmn.core.compiler.DMNCompilerImpl.compile(DMNCompilerImpl.java:90) [classes/:na]
at org.kie.dmn.core.compiler.DMNCompilerImpl.compile(DMNCompilerImpl.java:75) [classes/:na]
at org.kie.dmn.core.compiler.DMNCompilerImpl.compile(DMNCompilerImpl.java:64) [classes/:na]
at org.kie.dmn.core.assembler.DMNAssemblerService.addResource(DMNAssemblerService.java:55) [classes/:na]
{code}
)
> Incorrect "local" namespace resolution
> --------------------------------------
>
> Key: DROOLS-1502
> URL: https://issues.jboss.org/browse/DROOLS-1502
> Project: Drools
> Issue Type: Bug
> Components: dmn engine
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
>
> The following example DMN model similar to an already existing in the code base is modified for "local" xmlns namespace definition:
> [ EDIT : there was a wrong DMN model example ]
> and it's throwing two distinct types of NPEs.. (follows)
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (DROOLS-1502) Incorrect "local" namespace resolution
by Matteo Mortari (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1502?page=com.atlassian.jira.plugi... ]
Matteo Mortari updated DROOLS-1502:
-----------------------------------
Description:
The following example DMN model similar to an already existing in the code base is modified for "local" xmlns namespace definition:
[ EDIT : there was a wrong DMN model example ]
and it's throwing two distinct types of NPEs.. (follows)
was:
The following example DMN model similar to an already existing in the code base is modified for "local" xmlns namespace definition:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
name="definitions"
namespace="https://www.drools.org/kie-dmn/definitions"
xmlns="http://www.omg.org/spec/DMN/20151101/dmn.xsd"
xmlns:kie="https://www.drools.org/kie-dmn"
>
<!--TEST: do not define feel namespace globally, e.g.: NO root element xmlns:feel="http://www.omg.org/spec/FEEL/20140401" -->
<itemDefinition label="MyType" name="MyType">
<typeRef xmlns:feel="http://www.omg.org/spec/FEEL/20140401">feel:string</typeRef>
<allowedValues constraintsType="enumeration">
<text>"a","b","c"</text>
</allowedValues>
</itemDefinition>
<inputData id="_3d560678-a126-4654-a686-bc6d941fe40b" name="MyInput">
<variable id="_053333df-1777-45f1-a6c7-56562fbdfdae" name="MyInput" typeRef="MyType"/>
</inputData>
<decision id="_497a5306-b2e8-4945-b8b5-82af2e2b99b5" name="MyDecision">
<variable id="_514d6d8d-5329-44fa-af91-a7e7addbadd8" name="MyDecision" typeRef="MyType"/>
<informationRequirement>
<requiredInput href="#_3d560678-a126-4654-a686-bc6d941fe40b"/>
</informationRequirement>
<decisionTable hitPolicy="UNIQUE" id="_fff2b82e-2850-4826-adc9-4b1570d6fa91" outputLabel="MyDecision">
<input id="_e0471736-9a71-40c7-b5ca-bf367c6a3af9" label="MyInput">
<inputExpression typeRef="feel:string" xmlns:feel="http://www.omg.org/spec/FEEL/20140401">
<text>MyInput</text>
</inputExpression>
</input>
<output id="_01796218-0d50-4ebe-bd2b-b4509318e334"/>
<rule id="_fd1835b6-5fe1-4fd9-a8e4-39b4f7083b24">
<inputEntry expressionLanguage="http://www.omg.org/spec/FEEL/20140401" id="_1c8b24c7-e722-40d7-8661-f03d402688d2">
<text>-</text>
</inputEntry>
<outputEntry id="_0b9d04fe-032b-4753-84dd-9838f6cdef53">
<text>"Decision taken"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
</definitions>
{code}
and it's throwing two distinct types of NPEs.. (follows)
> Incorrect "local" namespace resolution
> --------------------------------------
>
> Key: DROOLS-1502
> URL: https://issues.jboss.org/browse/DROOLS-1502
> Project: Drools
> Issue Type: Bug
> Components: dmn engine
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
>
> The following example DMN model similar to an already existing in the code base is modified for "local" xmlns namespace definition:
> [ EDIT : there was a wrong DMN model example ]
> and it's throwing two distinct types of NPEs.. (follows)
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years