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

[jira] [Commented] (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=17683575#comment-17683575 ] 

Mike Beckerle commented on DAFFODIL-2784:
-----------------------------------------

This string to string mapping using repType may have been intended to work at one time, but I think it should not be supported. Only integer to string is really needed. So if the repType is not an integer type it should SDE. 

> 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
>            Priority: Major
>             Fix For: 3.5.0
>
>
> 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)