LP#1845050: fix issue where reports interface was partially loaded
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 24 Sep 2019 17:48:08 +0000 (13:48 -0400)
committerJason Boyer <jboyer@equinoxinitiative.org>
Tue, 1 Oct 2019 21:05:23 +0000 (17:05 -0400)
commitdbe2105bf097e2073ef8ca43c384d87b86b059ec
tree3984c738c026eea04e6ec9f5070e62b5636e745d
parentbf4fe1956ef27114c41e20ec10693467ea3a9673
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>
Signed-off-by: Jason Boyer <jboyer@equinoxinitiative.org>
Open-ILS/src/apachemods/mod_xmlent.c