You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Steve Lawrence (Jira)" <ji...@apache.org> on 2023/02/28 15:12:00 UTC

[jira] [Comment Edited] (DAFFODIL-2784) String repType to String enumeration doesn't work

    [ https://issues.apache.org/jira/browse/DAFFODIL-2784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17694608#comment-17694608 ] 

Steve Lawrence edited comment on DAFFODIL-2784 at 2/28/23 3:11 PM:
-------------------------------------------------------------------

I think this is the same issue as DAFFODIL-2780, where there is a typo: *dfdl:repValue* should be *dfdlx:repValues*, so plural instead of singlar.

We should be getting a warning that the property is ignored, which would make this more obvious. DAFFODIL-2798 is the issue to fix the typo.

[~olabusayo], can you confirm that fixing the typo resolves the issue?


was (Author: slawrence):
I think this has the same issue as DAFFODIL-2780, where there is a type, *dfdl:repValue* should be {*}dfdlx:repValues{*}, so plural instead of singlar.

We should be getting a warning that the property is ignored, which would make this more obvious. DAFFODIL-2798 is the issue get the typo.

[~olabusayo], can you confirm that fixing the typo resolves the issue?

> String repType to String enumeration doesn't work
> -------------------------------------------------
>
>                 Key: DAFFODIL-2784
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2784
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End
>    Affects Versions: 3.4.0
>            Reporter: Olabusayo Kilo
>            Assignee: Olabusayo Kilo
>            Priority: Major
>             Fix For: 3.5.0
>
>         Attachments: csvDetailed.dfdl.xsd, simpleCSVDetailed.csv, simpleCSVDetailed.xml
>
>
> While this might be unsupported, the bigger issue is it doesn't report an error, so you know it doesn't work. The repType is just inserted into the data and the enumeration mapping is ignored.
> This is further illustrated when you have a checkConstraints on either the enum simpleType or the element that uses it. The checkcontraint looks for the enum value but since the mapping failed, the checkConstraint fails as well
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)