Welcome! Log In Create A New Profile

Advanced

Possible bug in SSI include handling

Maxim Khitrov
December 30, 2009 02:50PM
Hello all,

This file structure required to duplicate this bug is a bit complex to
explain. Therefore, I put the required files into a tiny archive,
which you can download from [1].

This problem is appearing in latest 0.7 and 0.8 releases on FreeBSD
7.2. Download the archive, extract it to some directory, and start
nginx with the included configuration file (edit the "root" directive
as needed first). If you then view /good1.html and /good2.html, you
should see the following text:

File Header
Page Header
Content
Sidebar
Page Footer
File Footer

Viewing bad.html will show this:

File Header
Page Header
Content
Sidebar

The last two lines are missing. If you look at the source for all
three files, you'll see where the problem is. Conceptually, they are
all identical, but something breaks when executing the SSI code in
bad.html. More precisely, execution seems to stop after the first
include directive in content_footer.inc. Files good1.html and
good2.html show two ways of fixing the problem, but I cannot find a
good explanation as to why the original file doesn't work as expected.

I started looking through the source code for ssi module, but I'm
hoping that someone more familiar with nginx internals would be able
to find a solution quicker. It seems that adding wait="yes" to the
virtual include in bad.html also fixes the problem, so I suspect that
the issue is with requests being performed in parallel.

- Max

[1] http://www.bhsai.org/downloads/ssi.tgz

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Possible bug in SSI include handling

Maxim Khitrov December 30, 2009 02:50PM

Re: Possible bug in SSI include handling

Maxim Dounin December 31, 2009 10:02AM

Re: Possible bug in SSI include handling

dr-dr xp December 31, 2009 11:32AM

Re: Possible bug in SSI include handling

Maxim Dounin January 02, 2010 11:22PM

Re: Possible bug in SSI include handling

Maxim Khitrov January 03, 2010 12:00PM

Re: Possible bug in SSI include handling

dr-dr xp January 04, 2010 04:34AM

Re: Possible bug in SSI include handling

Joe Van Dyk January 19, 2010 04:00PM

Re: Possible bug in SSI include handling

Maxim Dounin January 19, 2010 07:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 163
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