LP#1845050: fix issue where reports interface was partially loaded user/gmcharlt/nested_reports_includes_take2
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 24 Sep 2019 17:48:08 +0000 (13:48 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 24 Sep 2019 17:48:08 +0000 (13:48 -0400)
commite7fa776ea5e5ab4a22eb07e1d9d389476c79cb2b
treef6bd07170a8c02d0a20bfda1441d1ade1513eb2a
parentefde2a454dc26bd9b5201aa2ab1af1f259250067
LP#1845050: fix issue where reports interface was partially loaded

This patch adjusts mod_xmlent to not free its XML parser
prematurely in the face of an EOS bucket received while processing
a sub-request.

To test
-------
[1] Test on a platform that has Apache 2.4.25 or later, such as
    Debian Stretch.
[2] Note that when loading the reports interface that the source
    of the frame containing oils_rpt.xhtml is incomplete and that
    actions like creating a template or folder do not work in the
    interface.
[3] Apply the patch and repeat step 2. This time, oils_rpt.xhtml
    should be fully loaded and the interface fuctional.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/apachemods/mod_xmlent.c