Fwd: tomcat and ISPs

2001-04-28 Thread James Duncan Davidson



Begin forwarded message:

 From: John Nicholas [EMAIL PROTECTED]
 Date: Fri Apr 27, 2001  06:26:04 AM US/Pacific
 To: [EMAIL PROTECTED]
 Subject: tomcat and ISPs

 Hi Duncan,
 I'm writing you just because you were the first name on the who we are
 page on jakarta.apache.org site :) You're probably not the guy to 
 implement
 this but I'm hoping you know who could.

 I'm a professional web developer and have been working with Java for a 
 while
 on my own projects and am really enjoying it. Right now I'm doing a lot 
 of
 freelance for small companies and agencies and have noticed that it 
 isn't
 very easy to use servlets in place of PHP or Perl simply because of
 availability at the hosting service level.

 I think one of the main reasons PHP is so popular is that almost all 
 hosting
 services have it. At my level of development (as in customer size), when
 someone asks me about a project I have to ask what technology their 
 hosting
 company supports and 90% of the time it's PHP and MySQL. They usually
 already have a setup they're comfortable with and are unlikely to move 
 to a
 java friendly host for one project.

 I think a how-to page for ISPs on how to implement Tomcat in an ISP
 enviroment would go a long way towards encouraging these guys to add 
 JSP and
 Servlet support to their product mix. They are almost always Apache 
 shops so
 I think that Tomcat would be the most natural method for them to use.

 Thanks,
 John Nicholas



Re: ERROR using multipart/form-data POST request

2001-04-28 Thread Dan Milstein

This specific bug has been fixed in 3.2.2, and the relevant function
(doRead()) has been extensively cleaned up.  The 3.2.2 support for ajp13 is
much, much better than in 3.2.1.

-Dan

Andrey Kartashov wrote:
 
 On Fri, Apr 27, 2001 at 11:17:32AM -0700, Lucian Cionca wrote:
  The reason for this is a bug in the doRead() method of Ajp13ConnectorRequest, which
  causes the
  doRead(byte[] b, int off, int len) in that same class to prematurely end processing
  .
  The bug is in the conversion of the value read from the bodyBuff byte-array, to an
  integer result. Bytes can have values
  from -128 to 127, while the result is expected to be a positive integer (in the
  range 0 to 255). A result of -1 is interpreted in the
  doRead(byte[] b, int off, int len) method as an error/end of input.
 
  The patch to Tomcat sources is very simple. In function int doRead()
  in Ajp13ConnectorRequest.java instead of the line
 
  return bodyBuff[pos++];
 
  the line
  return bodyBuff[pos++]  0xFF;
 
  should be used.
 
  Credit for the solution should go to Amir Nuri [EMAIL PROTECTED] who
  indicated the solution to me.
 
   On the other hand there is always the workaround to use ajp12 for the specific
  servlets that use multipart/form-data POST.
 [skpd]
 
 Thank you all for looking into this problem!
 I looked at doRead(...) function that you've mentioned and I think I'm going to
 stick with ajp12 for now:) It seems that this function is just a temporary hack
 anyway (at least this is what comment says).
 For one thing I'm not sure that it'll properly behave in all the cases
 because it always returns len. If I'm not mistaken - this means that it's
 possible to read more data than there is which may confuse some other code:)
 I compared it to the same function in Ajp12 implementation and I like ajp12 one
 better because it utilizes java's BufferedInputStream which I hope always does
 the right thing :)
 
 Anyway, thanks again for your help!
 
 --
 oo Andrey
 oo
 oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOo
 All mail clients suck. This one just sucks less.
-- http://www.mutt.org/  Jeremy Blosser
 oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOo

-- 

Dan Milstein // [EMAIL PROTECTED]



cvs commit: jakarta-tomcat/proposals/build2 - New directory

2001-04-28 Thread costin

costin  01/04/28 11:50:30

  jakarta-tomcat/proposals/build2 - New directory



cvs commit: jakarta-tomcat/proposals/build2/WEB-INF - New directory

2001-04-28 Thread costin

costin  01/04/28 12:28:55

  jakarta-tomcat/proposals/build2/WEB-INF - New directory