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 2021/11/16 19:00:00 UTC

[jira] [Created] (DAFFODIL-2586) Schema compilation hangs if incorrectly closed attribute

Steve Lawrence created DAFFODIL-2586:
----------------------------------------

             Summary: Schema compilation hangs if incorrectly closed attribute
                 Key: DAFFODIL-2586
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2586
             Project: Daffodil
          Issue Type: Bug
          Components: Front End
    Affects Versions: 3.2.0
            Reporter: Steve Lawrence


Notice below the missing quote with the last attribute of the dfdl:format element. When I parse a DFDL schema containing this dfdl:format element, Daffodil hangs forever.

{code:xml}
    <xs:annotation>
        <xs:appinfo source="http://www.ogf.org/dfdl/">
            <dfdl:format
                textBidi="no"
                separatorSuppressionPolicy="trailingEmpty"
                floating="no"
                encodingErrorPolicy="replace"
                outputNewLine="%CR;%LF;"
                leadingSkip="0" 
                trailingSkip="0"
                alignment="1" 
                alignmentUnits="bytes"
                textPadKind="none"
                textTrimKind="none" 
                truncateSpecifiedLengthString="no"
                escapeSchemeRef=""
                representation="binary"
                encoding="ASCII"
                separator = ""
                initiator = ""
                terminator = ""
                ignoreCase = "yes"
                sequenceKind="ordered"
                initiatedContent="no"
                fillByte="%SP;"
                lengthKind="implicit"
                byteOrder="littleEndian
            />
        </xs:appinfo>
    </xs:annotation>
{code}

Debugging a little bit, it looks like reportSyntaxError is getting called repeatedly with the same error message:
{quote}
'<' not allowed in attrib value
{quote}
Might be a bug in scala-xml, or might be a bug in our implementation of DaffodilConstructingLoader.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)