[
https://issues.apache.org/jira/browse/DAFFODIL-1897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16357273#comment-16357273
]
Steve Lawrence commented on DAFFODIL-1897:
------------------------------------------
This appears to be caused by an overzealous attempt to maintain backwards
compatibility. Some schemas include an import to
"edu/illinois/ncsa/daffodil/xsd/built-in-formats.xsd". In an attempt to
maintain backwards compatibility, we simply replace all occurrences of
"edu/illinois/ncsa" in import/include schema locations with "org/apache",
assuming that such instances are just schemas that have not updated the schema
location yet. However, if a schema was actually located in such a directory
(i.e. not just a reference to built-in-formats.xsd) then we still replace the
path, creating a path that does not exist. This really only applies to
built-in-formats.xsd, so we should change this to be specific to that one case.
> Some Schemas fail to compile with latest updates (v2.1.0-rc1)
> -------------------------------------------------------------
>
> Key: DAFFODIL-1897
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1897
> Project: Daffodil
> Issue Type: Bug
> Components: DFDL Schemas
> Affects Versions: 2.1.0
> Reporter: Dave Thompson
> Priority: Blocker
>
> Attempted to execute the nightly test suite on incubator-daffodil commit
> add8c5a6f82f25073475a4d6c7ae94fb5ca6e01a.
> Four dfdl schemas failed to compile for the following formats: army-drrs,
> ato-rep, csvMixedNarrow and pcap.
> The command and error are provided below.
> Attempting to save parser for army-drrs.
> Test name is: army-drrs_10t_all_1000
> CMD:
> /home/dfdl/incubator-daffodil/daffodil-cli/target/universal/stage/bin/daffodil
> -v save-parser -s
> /home/dfdl/ngf-dfdl/daffodil-perf/src/test/resources/edu/illinois/ncsa/daffodil/fouo_disa/army_drrs_lh/army_drrs_lh.dfdl.xsd
> > /home/dfdl/dfdl-testharness/saved_parsers/0.0.0/army-drrs.parser.bin
> process return code: 1
> Failed to Save Parser - army-drrs
> Error: [error] Schema Definition Error: No schema document at location
> file:/home/dfdl/ngf-dfdl/daffodil-perf/src/test/resources/org/apache/daffodil/fouo_disa/army_drrs_lh/army_drrs_lh.dfdl.xsd.
> Schema context: Import Location in file:unknown
> [warning] Schema Definition Warning: schemaLocation property uses deprecated
> edu/illinois/ncsa/daffodil path instead of org/apache/daffodil. Converting to
> new path.
> Schema context: Import Location in file:unknown
> [info] Time (compiling): 219ms
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)