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

ASF subversion and git services commented on NIFI-13709:
--------------------------------------------------------

Commit 01d406cce2fe34dfb26c3a7080f87d07cb536aa1 in nifi's branch 
refs/heads/support/nifi-1.x from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=01d406cce2 ]

NIFI-13709 Added more meaningful message when validation fails with 
non-compliant XML and no schema is provided. (#9237)

Signed-off-by: David Handermann <[email protected]>

> ValidateXML does not provide a meaningful message in the 
> 'validatexml.invalid.error' attribute when invalid XML is validated and no 
> schema is provided
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-13709
>                 URL: https://issues.apache.org/jira/browse/NIFI-13709
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>             Fix For: 2.0.0-M5
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Currently if invalid XML is validated in the ValidateXML processor without a 
> schema being provided the 'validatexml.invalid.error' attribute only contains 
> "Reading stream failed". This is not helpful as to why this failed. 
> A case in point is the unit test testInvalidXMLContentStructure in 
> TestValidateXml.
> Instead of "Reading stream failed" it could have
> {code:java}
> ParseError at [row,col]:[1,22]
> Message: The element type "this" must be terminated by the matching end-tag 
> "</this>".
> {code}
> which would be more useful in diagnosing what went wrong.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to