Welcome! Log In Create A New Profile

Advanced

Re: issue with XSLT [0.8.x]

Maxim Dounin
July 16, 2009 11:16PM
Hello!

On Fri, Jul 17, 2009 at 11:14:57AM +0900, Kuramoto Eiji wrote:

> I think it may be a bug.
>
> well-formed status (ctx->ctxt->wellFormed) should check and save
> before free xmlParserCtxtPtr. like this,

Nice catch, thanks!

Maxim Dounin

>
> --- ngx_http_xslt_filter_module.c 29 May 2009 03:29:15 -0000 1.8
> +++ ngx_http_xslt_filter_module.c 2 Jun 2009 08:15:28 -0000 1.9
> @@ -273,6 +273,7 @@
> {
> ngx_chain_t *cl;
> ngx_http_xslt_filter_ctx_t *ctx;
> + int wellFormed;
>
> ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
> "xslt filter body");
> @@ -312,9 +313,14 @@
> ctx->doc->extSubset = NULL;
> #endif
>
> + /*
> + * save well-formed status, so free ctx->ctxt in xmlFreeParserCtxt().
> + */
> + wellFormed = ctx->ctxt->wellFormed;
> +
> xmlFreeParserCtxt(ctx->ctxt);
>
> - if (ctx->ctxt->wellFormed) {
> + if (wellFormed) {
> return ngx_http_xslt_send(r, ctx,
> ngx_http_xslt_apply_stylesheet(r, ctx));
> }
>
> On Thu, 16 Jul 2009 16:19:05 -0400
> valve wrote:
>
> } I'm having a weird issue with the XSLT module in nginx: after some random time, requesting an XSLT-transformed URL generates 500-errors. The errorlog tells me that the XML-document is not well formed, which it is.
> }
> } It seems to be similar to an issue raised on the Russian maillinglist (http://www.lexa.ru/nginx-ru/msg25325.html ), although I'm not using FastCGI but just use static XML files as input for the XSLT-engine.
>
> - Kuramoto Eiji
>
Subject Author Posted

issue with XSLT [0.8.x]

valve July 16, 2009 04:19PM

Re: issue with XSLT [0.8.x]

Kuramoto Eiji July 16, 2009 10:14PM

Re: issue with XSLT [0.8.x]

Maxim Dounin July 16, 2009 11:16PM

Re: issue with XSLT [0.8.x]

valve July 17, 2009 02:34AM

Re: issue with XSLT [0.8.x]

valve July 19, 2009 06:18AM

Re: issue with XSLT [0.8.x]

Maxim Dounin July 16, 2009 10:23PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 295
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready