DO NOT REPLY [Bug 22898] - nph scripts with two HTTP header

2007-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=22898


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 OS/Version|Linux   |All
 Resolution|FIXED   |
Version|2.2.0   |2.3-HEAD




--- Additional Comments From [EMAIL PROTECTED]  2007-06-11 02:30 ---
After a year, the patch below has still not been folded into the 2.2 trunk.

Until it is,  nph- scripts addressed via AddHandler or Action fail on Apache 
2.x!

I am aware that nph- is considered a dead area - but it's necessary for legacy
code and regardless, Apache 2.x claims support for it (and indeed does support
it when it is not referred to via Action or AddHandler)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22898] - nph scripts with two HTTP header

2006-03-14 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=22898


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #17796|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2006-03-14 12:40 ---
Created an attachment (id=17891)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17891&action=view)
mod_cgi diff file that fixes 22898 and related bugs

The Apache2.x fails to behave properly when nph- are used in Actions.
This patch includes some debugging messages, and fixes two related severe bugs
which cause nph- cgi scripts to fail when cgi,_handler is called via an Action
directive. The bugs are (1) apr_filepath_name_get(r->filename) returns a full
path when cgi_handler is accessed via Action, which means that the strncmp test
fails to identify the nph- prefix. (2) The clear up of the bucket brigade fails
unless the request is the ap_is_initial_req. The fix in the patch for (1) is to
use strstr instead of strncmp - though there may be a better fix for that.  The
fix in the patch for (2) is on false for ap_is_initial_req to clear the bucket
brigade at r->prev. 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22898] - nph scripts with two HTTP header

2006-02-24 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=22898


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
   Keywords||PatchAvailable
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-02-25 00:38 ---
This bug is essentially fixed - though it needs to be folded into the main cvs.
There were two basic bugs here - one was the faulty (ie not working)
identification of nph- cgi scripts. The other was the misconception that an
nph-cgi request will be the initial request; something patently not true when
being called via Action.

The fix that I have done is lame. It only deals with one previous process;
however, this seems to be the primary problem, so it works. Basically, we now
call ap_is_initial_req(r) and if it is !=1, then we also strip the
output_filters of the previous/container request.

I have posted the entire amended file. sorry. I don't understand the patch 
system..



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22898] - nph scripts with two HTTP header

2006-02-24 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=22898





--- Additional Comments From [EMAIL PROTECTED]  2006-02-25 00:35 ---
Created an attachment (id=17796)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17796&action=view)
This is a drop in replacement that fixes bug 22898

This adds some APLOG_DEBUG messages, which are useful for nph- bug issues.
There are 2 major bugs that are now 'fixed' here. Of course, the fixes are
kludges, but then I'm not a core Apache programmer. Note that identification of
nph- now uses strstr, rather than strncmp! Also note that the nph- code part
strips out output_filters from it's immediate caller!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22898] - nph scripts with two HTTP header

2006-02-24 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=22898





--- Additional Comments From [EMAIL PROTECTED]  2006-02-24 23:37 ---
There is a work-around, which is to change the return line of any cgi script
from being e.g.
HTTP/1.1 200 OK
to
Status 200 OK
- and dropping nph- status. 

Of course this does NOT fix the legacy issue, and probably remains a typical
reason why so many people carry on using 1.3.x (slaps wrist).

I've done some more RA on this.
The dupe header always shows Content-Length: 0
It looks like a default / stub header is being pushed out.

Interestingly - this bug ONLY appears to occur when using the Action directive,
(It makes no difference if one uses AddType or AddHandler or SetHandler ) ..
guess where I will look next...

Output filters are being correctly stripped by mod-cgi - though it seems like it
would be easier just to do something like 
rv = ap_pass_brigade(r->output_filters, bb);
.. but hey, what do I know?




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22898] - nph scripts with two HTTP header

2006-02-24 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=22898


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Platform|PC  |All




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22898] - nph scripts with two HTTP header

2006-02-24 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=22898


[EMAIL PROTECTED] changed:

   What|Removed |Added

Version|2.0.55  |2.2.0




--- Additional Comments From [EMAIL PROTECTED]  2006-02-24 20:26 ---
This bug persists on Apache 2.2.It is caused in generators/mod_cgi.c, line 760 
nph = !(strncmp(argv0, "nph-", 4));

Add the following just before it (recompile, start with debug logging on):
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "Identifying cgi script:%s",
r->filename);

We can see that the strncmp will fail, because the cgi script will include a
full path: e.g.
 "Identifying cgi script:/home/www/site/test/bin/nph-foobar.cgi"

The conf lines for this are as follows:
 ScriptAlias  /x/ /home/www/site/test/bin
 Action   foo-file/x/nph-foobar.cgi
 AddHandler   foo-file.foo

So - changing line 760 to:
nph = ( strstr(argv0,"nph-") != NULL );
(which of course means that any "nph-" will return positive...)
now identifies nph scripts as such. However.. the additional headers STILL
appear... at which point.. I am stumped. 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22898] - nph scripts with two HTTP header

2006-02-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=22898


[EMAIL PROTECTED] changed:

   What|Removed |Added

Version|2.0.47  |2.0.55




--- Additional Comments From [EMAIL PROTECTED]  2006-02-15 21:33 ---
I have a similar problem, using an "nph-" script via mod_cgi, being redirected
via mod_rewrite.  If I call the script directly, I do not get the additonal
header at the end, but if I go through mod_rewrite, I do.  This is with Apache
2.0.54 and 2.0.55.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22898] - nph scripts with two HTTP header

2004-06-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=22898

nph scripts with two HTTP header

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]



--- Additional Comments From [EMAIL PROTECTED]  2004-06-03 16:19 ---
*** Bug 26724 has been marked as a duplicate of this bug. ***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22898] - nph scripts with two HTTP header

2003-11-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22898

nph scripts with two HTTP header

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED



--- Additional Comments From [EMAIL PROTECTED]  2003-11-01 09:44 ---
sounds really like a nasty bug ;-)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22898] - nph scripts with two HTTP header

2003-10-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22898

nph scripts with two HTTP header





--- Additional Comments From [EMAIL PROTECTED]  2003-10-31 23:16 ---
I am getting this problem too, with Meta-HTML. I have not been able to reproduce
by telnetting to port, b/c the second header seems to be sent after the
connection is closed! but all my pages are served with a second header at the
end. For example, http://www.metasystema.net/welcome.mhtml

telnet shows the Meta-HTML headers at the beginning where one would expect them:

get /welcome.mhtml
HTTP/1.0 200 OK
Server: MHttpd/4.1 (bfox; i686-linux; Meta-HTML/6.11)
Date: Fri, 31 Oct 2003 23:08:24 GMT
Expires: Thu, 30 Oct 2003 23:08:24 GMT
Last-modified: Fri, 31 Oct 2003 23:07:24 GMT
Content-length: 9585
Meta-HTML-Engine: MHttpd/4.1 (bfox; i686-linux; Meta-HTML/6.11)
Content-type: text/html

then at the end, the page displays the apache2 header (from view source):

HTTP/1.1 200 OK
Date: Fri, 31 Oct 2003 23:05:58 GMT
Server: Apache/2.0.48 (Gentoo/Linux)
Content-Length: 0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: metahtml/interpreted

My conf:

AddType metahtml/interpreted .mhtml
Action  metahtml/interpreted /cgi-bin/nph-engine
ScriptAlias /cgi-bin/   /www/metasystema.net/cgi-bin/

I've verified this occurs in 2.0.48 as well as 2.0.47.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22898] - nph scripts with two HTTP header

2003-09-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22898

nph scripts with two HTTP header





--- Additional Comments From [EMAIL PROTECTED]  2003-09-04 06:28 ---
mod_perl no problem. I tested my example without loading mod_perl module too.
Problem is mod_cgi and mod_cgid. My example don't use e-perl.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]