You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Steve Lawrence (JIRA)" <ji...@apache.org> on 2019/06/10 16:58:00 UTC

[jira] [Resolved] (DAFFODIL-1024) Property inputValueCalc should not be on element that is optional, global, or an array

     [ https://issues.apache.org/jira/browse/DAFFODIL-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Lawrence resolved DAFFODIL-1024.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.0

The issue with the optional and array elem tests turned out to be typos (e.g. dfdl:minOccurs instead of minOccurs).

FIxed in commit 4413ed755ef6ae80b209e0f7a2aa486d836883a7, which reenabled schema validation to find and fix these typos.

Note that the globlam elem test is intentionally not resolved since we often use dfdl:inputValueCalc on global elements for TDML tests. No plans to change that behavior, so closing bug as fixed.

> Property inputValueCalc should not be on element that is optional, global, or an array
> --------------------------------------------------------------------------------------
>
>                 Key: DAFFODIL-1024
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1024
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Diagnostics, Front End
>    Affects Versions: s15
>            Reporter: Elizabeth Fahl
>            Assignee: Steve Lawrence
>            Priority: Major
>             Fix For: 2.4.0
>
>
> According to the spec, inputValueCalc should not be used on an element that is optional, global, or an array. The tests for these conditions are currently parsing and not throwing any errors.
> See tests in:
> daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section17/calc_value_properties/TestInputValueCalcDebug.scala
> daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section17/calc_value_properties/inputValueCalc.tdml
> Tests:
> ngf-dfdl-2777:InputValueCalc-test_InputValueCalc_optional_elem
> ngf-dfdl-2779:InputValueCalc-test_InputValueCalc_global_elem
> ngf-dfdl-2778:InputValueCalc-test_InputValueCalc_array_elem



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)