[jboss-jira] [JBoss JIRA] (DROOLS-4557) Missing semantic validation of DMN file

Gabriele Cardosi (Jira) issues at jboss.org
Mon Sep 23 11:21:00 EDT 2019


Gabriele Cardosi created DROOLS-4557:
----------------------------------------

             Summary: Missing semantic validation of DMN file
                 Key: DROOLS-4557
                 URL: https://issues.jboss.org/browse/DROOLS-4557
             Project: Drools
          Issue Type: Bug
          Components: DMN Editor
            Reporter: Gabriele Cardosi
            Assignee: Michael Anstis
         Attachments: E3083400-878D-49DB-8E72-105FDB6BAF44.dmn

If a semantically wrong file is parsed by the marshaller, exception may be thrown but they are not meaningfull.
As example, the attached file raise a NPE at `DMNMarshallerStandalone` because  at this line `   Node sourceNode = Optional.ofNullable(elems.get(sourceId)).map(Entry::getValue).orElse(textAnnotations.get(sourceId));` elemens is empty.
So, even if the file is sintactically correct, it is semantically wrong; but this semantic check seems not implemented.

         `



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list