You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/09/05 10:08:00 UTC

[jira] [Commented] (NIFI-13709) ValidateXML does not provide a meaningful message in the 'validatexml.invalid.error' attribute when invalid XML is validated and no schema is provided

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

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

Commit 727b0ba106c78ca79cc2419ade3b71989083923b in nifi's branch refs/heads/main from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=727b0ba106 ]

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

Signed-off-by: Pierre Villard <pi...@gmail.com>

This closes #9229.


> 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
>          Time Spent: 10m
>  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)