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

Olabusayo Kilo commented on DAFFODIL-2784:
------------------------------------------

So it would appear that string to string mapping does work. See files attached 
below, but there is something specific to oth-gold that breaks this. Attempts 
to recreate are unsuccessful.

[^csvDetailed.dfdl.xsd][^simpleCSVDetailed.csv][^simpleCSVDetailed.xml]

 NOTE: this resource is not publically available though it reproduces the 
problem

Schema Project: 
https://hqapp01.columbia.tresys.com/okilo_bug_examples/oth-gold-daf-2784/-/tree/daf-2784-
stringtoStringMapping
Branch: daf-2784-stringtoStringMapping
Replicated by: running "sbt test"

daffodil git hash: 10c520aefa3e0911586da24447d499a7e5c28f9a



> 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
>
>         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)

Reply via email to