Bug 60763 - XMLAssertion should not leak errors to console
Summary: XMLAssertion should not leak errors to console
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 3.1
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-21 23:49 UTC by Sebb
Modified: 2017-02-25 14:51 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebb 2017-02-21 23:49:16 UTC
The XMLAssertion class can write errors to the console. This can be seen by running the test XmlAssertionTest which generates the output:

 [Fatal Error] :1:1: Content is not allowed in prolog.
 [Fatal Error] :1:112: The end-tag for element type "note" must end with a '>' delimiter.

This should be suppressed by defining an ErrorHandler.
Comment 1 Philippe Mouawad 2017-02-25 14:51:51 UTC
Author: pmouawad
Date: Sat Feb 25 14:51:29 2017
New Revision: 1784384

URL: http://svn.apache.org/viewvc?rev=1784384&view=rev
Log:
Bug 60763 - XMLAssertion should not leak errors to console
Bugzilla Id: 60763

Added:
    jmeter/trunk/src/components/org/apache/jmeter/assertions/LogErrorHandler.java   (with props)
Modified:
    jmeter/trunk/src/components/org/apache/jmeter/assertions/XMLAssertion.java
    jmeter/trunk/xdocs/changes.xml