tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amy Roh <amy...@apache.org>
Subject Re: CGI support servlet (TC 4) -- feedback wanted
Date Tue, 03 Apr 2001 23:19:46 GMT
> Right now they are basically the same scripts that I added to the
> examples webapp.  So, should I just duplicate the scripts so we have one
> set in <tomcat-root>/webapps/examples/WEB-INF/cgi-bin and one set in
> <tomcat-root>/tester/src/bin?  Or would the tester/src/bin/tester.xml
> simply have some targets which tested the output of some requests to
> http://server/examples/cgi-bin/cgitester.cgi, etc.?
>

I think once the feature is fully implemented, we can work on a tester which tests
your scripts and add it to our set of tests.  So whenever the tester is ran, we can
display something like "CGI tests all PASSED" following the current tester style.


>
> >
> >> 5) Default location of cgi scripts
> >>
> >> In another project, we have put all cgi scripts under
> >> <webapp>/WEB-INF/cgi since they are then 1) not liable to be served by
> >> the container; yet 2) still encapsulated underneath the webapp's own
> >> directory structure.
> >>
> >> One observation and two issues here:
> >>
> >> Observation: the Servlet spec is obviously silent on CGI placement
> >> issues; yet we should probably support (and even default to?) something
> >> congruent with standard CGI practice of separating the HTML and CGI
> >> scripts (/doc-root and /cgi-bin) while not encouraging anything which
> >> breaks the Servlet API's web application filesystem (or war file)
> >> boundaries.
> >>
> >> Issue 1) generally, how do people like the <webapp>/WEB-INF/cgi solution
> >> in light of the above observation?
> >
> >
> > +1
> >
>
> Cool.
>
> >> Issue 2) if people like it, should we make it the default setting (by
> >> defining an init-parameter for the CGI servlet in the container-wide
> >> web.xml file)?
> >
> >
> > I think we should designate a cgi directory where people can put CGI scripts for
> > security reasons.
>
> Yes, on a per-webapp level?
>

I meant like an absolute directory like "cgi-bin" directory in file system.  But
there're options....

>
> >
> > Is the source code from  http://www.martindengler.com/proj/CGIGatewayServlet.zip
> > the most updated one?
> >
>
> I have made some more updates which I have not posted yet.  Once I take
> into account your & others' suggestions, I will update that zip file.  I
> imagine I can make most of the changes tonight and re-package tomorrow,
> so hopefully a new one will be up soon.
>

Awesome.  Thanks!

Cheers,

Amy



Mime
View raw message