www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Warren Van Wyck <...@zoo.uvm.edu>
Subject mod_cgi/5443: Rexx CGI scripts fail for Windows only.
Date Wed, 08 Dec 1999 21:35:56 GMT

>Number:         5443
>Category:       mod_cgi
>Synopsis:       Rexx CGI scripts fail for Windows only.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Dec  8 13:40:01 PST 1999
>Last-Modified:
>Originator:     wvw@zoo.uvm.edu
>Organization:
apache
>Release:        1.3.9
>Environment:
Windows 98
>Description:
This works with Linux and AIX Apaches.
When using the '#!' line for a CGI script, with Windows 98 the first line is ALSO
passed to the Script Interpreter.  This is OK for Perl and Csh, etc. where # starts a
comment line.

>From the error.log file:


[Wed Dec 08 15:51:56 1999] [error] [client 132.198.110.123] Premature end of scr
ipt headers: c:/program files/apache group/apache/cgi-bin/wvwcgi.rex
[Wed Dec 08 15:51:56 1999] [error] [client 132.198.110.123]      1 *-* #

[Wed Dec 08 15:51:56 1999] [error] [client 132.198.110.123] Error 13 running c:\
program files\apache group\apache\cgi-bin\wvwcgi.rex line 1:  Invalid character
in program

[Wed Dec 08 15:51:56 1999] [error] [client 132.198.110.123] Error 13.1:  Incorre
ct character in program "#" ('23'X)



Where wvwcgi.rex is:

#!c:/objrexx/rexx
/*  Magic does NOT work  12/8/99  */
  Say "Content-type: text/html"
  Say ""
  Say "This CGI script works!  Object Rexx";
>How-To-Repeat:
Yes, but the Web client will only show the "Internal Server Error" -- it's the 
error.log file that shows the error.
>Fix:
Windows Apache handling of the '#!' line should bypass that line also.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]




Mime
View raw message