jenkinsci/jenkins — pull request #428 by thomasvandoren (2012-04-07 03:44:04+00:00)
Title: Remove XML string writer from IOException2 when XPath error occurs.

Remove XML string writer from IOException2 message when XPath error
occurs in /api/xml request.

The XML string writer has the potential to be very large (many
megabytes or even gigabytes) and these exceptions will be logged to
the default jenkins logfile by winstone. This has the potential to
quickly use all available disk space if, for example, a jenkins poller
(i.e. a chrome extension) makes frequent calls to the API that causes
errors.

This is a quick fix to address a specific issue I am having. It doesn't
address the issue of managing very long log messages in general.

Thanks for the consideration!