Woodstox

XMLReporter not getting called for non-fatal validation errors

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

(reported by Eduardo R Rodrigues)

XMLReporter only gets called for warnings, but not for non-fatal validation errors. This is incorrect as Stax specification and javadocs for XMLReporter; instead, reporter should be called for such errors.
This is important enough a problem to warrant getting backported to 3.2 series, since it makes it impossible to try non-disruptive validation of documents.

Activity

Hide
Tatu Saloranta added a comment -

Fixed: DTDValidatorBase was not properly calling InputProblemReporter, but instead threw an exception. Additionally InputProblemReporter implementation had wrong logic in determining when to call XMLReporter.

Fixed in trunk and 3.2 branch.

Show
Tatu Saloranta added a comment - Fixed: DTDValidatorBase was not properly calling InputProblemReporter, but instead threw an exception. Additionally InputProblemReporter implementation had wrong logic in determining when to call XMLReporter. Fixed in trunk and 3.2 branch.
Hide
Tatu Saloranta added a comment -

Was included in 3.2.6 release (and 3.9.2)

Show
Tatu Saloranta added a comment - Was included in 3.2.6 release (and 3.9.2)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: