Corner case with UnavailableException

2005-12-01 Thread Jeanfrancois Arcand

Hi,

I'm currently looking at a corner case when an UnavailableException is 
thrown. Mainly, the Servlet is doing:



public void service(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {

PrintWriter out = resp.getWriter();
resp.setContentType(text/html);

out.println( HTML );
out.flush();
throw (new UnavailableException(Unavailable));


The UnavailableException is permanent, so the Servlet.destroy() should 
be called(SRV.2.3.3.2). But that's not the case since the response has 
already been commited, so a java.lang.IllegalStateException will be 
thrown from StandardWrapperValve:



242 } else if (available == Long.MAX_VALUE) {
243 response.sendError(HttpServletResponse.SC_NOT_FOUND,
244 sm.getString(standardWrapper.notFound,
245 wrapper.getName()));
246 }



java.lang.IllegalStateException: Cannot call sendError() after the response has 
been committed


I think we should avoid calling sendError is we know the response has 
been commited. Something like:


if (!response.isAppCommited()) {

}

What people thinks?

-- Jeanfrancois

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



svn commit: r350279 - in /tomcat/site/trunk: docs/download-55.html xdocs/download-55.xml

2005-12-01 Thread yoavs
Author: yoavs
Date: Thu Dec  1 09:14:09 2005
New Revision: 350279

URL: http://svn.apache.org/viewcvs?rev=350279view=rev
Log:
Tomcat 5.5.13-beta.

Modified:
tomcat/site/trunk/docs/download-55.html
tomcat/site/trunk/xdocs/download-55.xml

Modified: tomcat/site/trunk/docs/download-55.html
URL: 
http://svn.apache.org/viewcvs/tomcat/site/trunk/docs/download-55.html?rev=350279r1=350278r2=350279view=diff
==
--- tomcat/site/trunk/docs/download-55.html (original)
+++ tomcat/site/trunk/docs/download-55.html Thu Dec  1 09:14:09 2005
@@ -199,6 +199,7 @@
 p
 blockquote
 a href=http://www.apache.org/dist/tomcat/tomcat-5/KEYS;KEYS/a |
+a href=#5.5.13-beta5.5.13-beta/a |
 a href=#5.5.125.5.12/a |
 a href=#5.0.30-beta5.0.30-beta/a |
 a href=#5.0.285.0.28/a |
@@ -286,6 +287,187 @@
   

   /blockquote
+/p
+/td
+/tr
+tr
+td
+br /
+/td
+/tr
+/table
+table width=100% cellpadding=2 cellspacing=0 border=0
+tr
+td bgcolor=#525D76
+font face=arial,helvetica,sanserif color=#ff
+a name=5.5.13-beta
+strong5.5.13-beta/strong
+/a
+/font
+/td
+/tr
+tr
+td
+p
+blockquote
+  p
+  a name=5.5.13-betaPlease/a see the 
+  a href=[preferred]/tomcat/tomcat-5/v5.5.13/README.htmlREADME/a
+  file for packaging information.  It explains what every distribution 
contains.
+  /p
+
+  table width=100% cellpadding=2 cellspacing=0 border=0
+tr
+td bgcolor=#828DA6
+font face=arial,helvetica,sanserif color=#ff
+a name=Binary Distributions
+strongBinary Distributions/strong
+/a
+/font
+/td
+/tr
+tr
+td
+blockquote
+  ul
+liCore:
+  ul
+  li
+  a 
href=[preferred]/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13.zipzip/a
 
+  (a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13.zip.asc;pgp/a,
 
+  a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13.zip.md5;md5/a)
+  /li
+  li
+  a 
href=[preferred]/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13.tar.gztar.gz/a
 
+  (a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13.tar.gz.asc;pgp/a,
 
+  a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13.tar.gz.md5;md5/a)
+  /li
+  li
+  a 
href=[preferred]/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13.exeWindows
 Executable/a 
+  (a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13.exe.asc;pgp/a,
 
+  a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13.exe.md5;md5/a)
+  /li
+  /ul
+/li
+
+liDeployer: 
+  ul
+  li
+  a 
href=[preferred]/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-deployer.zipzip/a
 
+  (a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-deployer.zip.asc;pgp/a,
 
+   a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-deployer.zip.md5;md5/a)
+  /li
+  li
+  a 
href=[preferred]/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-deployer.tar.gztar.gz/a
 
+  (a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-deployer.tar.gz.asc;pgp/a,
 
+  a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-deployer.tar.gz.md5;md5/a)
+  /li
+  /ul
+/li
+liEmbedded:
+  ul
+  li
+  a 
href=[preferred]/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-embed.zipzip/a
 
+  (a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-embed.zip.asc;pgp/a,
 
+  a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-embed.zip.md5;md5/a)
+  /li
+  li
+  a 
href=[preferred]/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-embed.tar.gztar.gz/a
 
+  (a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-embed.tar.gz.asc;pgp/a,
 
+  a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-embed.tar.gz.md5;md5/a)
+  /li
+  /ul
+/li
+
+liAdministration Web Application:
+  ul
+  li
+a 
href=[preferred]/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-admin.zipzip/a
 
+(a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-admin.zip.asc;pgp/a,
 
+a 
href=http://www.apache.org/dist/tomcat/tomcat-5/v5.5.13-beta/bin/apache-tomcat-5.5.13-admin.zip.md5;md5/a)
+  /li
+  li
+a 

[ANN] Apache Tomcat v5.5.13-beta Now Available

2005-12-01 Thread Yoav Shapira
The Apache Tomcat http://tomcat.apache.org team is proud to announce the
immediate availability of Tomcat 5.5.13-beta. This version contains several
important bug fixes, minor feature additions, and documentation
enhancements.  This is also the first release to be cut from the Tomcat SVN
repository http://www.apache.org/dev/version-control.html at Apache: the
previous CVS repository is no longer used.  Please note that with Tomcat's
move to its own top-level project outside Jakarta, the following links are
at new locations:

Release Notes: http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES
Change Log: http://tomcat.apache.org/tomcat-5.5-doc/changelog.html
Downloads: http://tomcat.apache.org/download-55.cgi

Thank you,
-- The Apache Tomcat Team


DO NOT REPLY [Bug 37742] New: - Change docs to not have Jakarta image

2005-12-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37742.
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=37742

   Summary: Change docs to not have Jakarta image
   Product: Tomcat 5
   Version: 5.5.13
  Platform: All
   URL: http://tomcat.apache.org
OS/Version: All
Status: NEW
  Severity: trivial
  Priority: P5
 Component: Webapps:Documentation
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


The docs still have the Jakarta logo: change tomcat-5.5-doc to match main site
docs and remove Jakarta image.  Should be a simple change, this is just a note
so I do not forget.

-- 
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 37742] - Change docs to not have Jakarta image

2005-12-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37742.
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=37742


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




-- 
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]



Re: directory listings

2005-12-01 Thread Rafael H. Schloming
Thanks for the feedback. I'll make the changes you suggest as soon as I
have a chance and repost the patch.

On Wed, 2005-11-30 at 19:47 -0500, Yoav Shapira wrote:
 Hi,
 It's an interesting patch and an interesting idea in general.  I'm
 impressed with the performance findings, although I haven't seen
 anyone recently complaining about many concurrent directory listings
 requests.
 
 I have a couple of requests for the patch, if you don't mind some
 feedback.  I'd prefer a separate class for the DirectoryListingCache
 or whatever you want to call it, with its CacheEntry and rendering,
 encoding methods.  It's kind of ugly to throw all of that into
 DefaultServlet.  DefaultServlet can then use the cache class.  I'd
 also prefer the relevant parameters (5, 1000) to be configurable, at
 least via protected setter/getter methods.  Finally, assuming the
 above refactoring is done, I'd like a parameter from web.xml to
 DefaultServlet setting whether to use the directory listing cache or
 not.  That way people can turn it off easily.
 
 Yoav

-- 
Rafael H. Schloming [EMAIL PROTECTED]


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



DO NOT REPLY [Bug 36318] - CRC error in compressed sample.war file

2005-12-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36318.
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=36318


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




-- 
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 37737] - Add 4.1.31 jars to apache repository

2005-12-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37737.
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=37737





--- Additional Comments From [EMAIL PROTECTED]  2005-12-01 21:46 ---
Not sure what the process is to do this. I have requested some guidance from the
repository mailing list and I'll let you know the results.

-- 
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 36318] - CRC error in compressed sample.war file

2005-12-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36318.
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=36318


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2005-12-01 22:22 ---
OK, fixed again. It will take a couple of hours to sync to the main web site.

-- 
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]



Re: Cross-Context Session Replication

2005-12-01 Thread Peter Rossbach

Hey,

I am highly interessed to support cross-context for cluster session 
replication. The session.endAccess is a neat place

for support this. Please, let us discuss how we can use it.

Any idea
Peter

Remy Maucherat schrieb:


John Lewis wrote:

As was discussed here over the summer, there is a need in the JSR-168 
Portlet community to use cross-context access so that a portal webapp 
can communicate with various portlet webapps.  Unfortunately, session 
replication in a Tomcat cluster does not occur when one webapp 
accesses another webapp's context and changes occur in the session of 
the target webapp.


Unicon now has several clients that are extremely eager to see 
cross-context session replication support built into Tomcat.  Given 
that this work would be difficult for someone not already familiar 
with the Tomcat code, are there any experienced Tomcat developers out 
there who would be interested in doing this work for pay?  Of course 
we are eager to have this change incorporated into the main Tomcat 
code, so having an existing Tomcat committer do this would be ideal.


If anyone qualified is interested, please contact me directly.  We 
will undertake the effort ourselves if necessary, but obviously we 
would prefer to find a community-oriented solution to the problem.



I proposed to use the session.endAccess method to do that, but nobody 
seemed interested in actually implementing it.


Rémy

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








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



DO NOT REPLY [Bug 36121] - Including JSP's changes working directory

2005-12-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36121.
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=36121


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |NEEDINFO




--- Additional Comments From [EMAIL PROTECTED]  2005-12-01 23:00 ---
Please post a WAR file we can use to reproduce this issue.

-- 
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 34560] - AuthenticatorBase tests and applies disableProxyCaching even if no auth-constraints

2005-12-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34560.
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=34560


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|NEEDINFO




--- Additional Comments From [EMAIL PROTECTED]  2005-12-01 23:02 ---
Bill, does the 2nd patch look reasonable?

-- 
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]



svn commit: r351503 - /tomcat/build/tc5.5.x/RELEASE-NOTES

2005-12-01 Thread keith
Author: keith
Date: Thu Dec  1 14:12:48 2005
New Revision: 351503

URL: http://svn.apache.org/viewcvs?rev=351503view=rev
Log:
update urls

Modified:
tomcat/build/tc5.5.x/RELEASE-NOTES

Modified: tomcat/build/tc5.5.x/RELEASE-NOTES
URL: 
http://svn.apache.org/viewcvs/tomcat/build/tc5.5.x/RELEASE-NOTES?rev=351503r1=351502r2=351503view=diff
==
--- tomcat/build/tc5.5.x/RELEASE-NOTES (original)
+++ tomcat/build/tc5.5.x/RELEASE-NOTES Thu Dec  1 14:12:48 2005
@@ -158,7 +158,7 @@
 
 Using the invoker servlet in a production environment is not recommended and
 is unsupported.  More details are available on the Tomcat FAQ at
-http://jakarta.apache.org/tomcat/faq/misc.html#invoker.
+http://tomcat.apache.org/faq/misc.html#invoker.
 
 
 ==
@@ -171,4 +171,4 @@
 When all else fails:
 
 See the FAQ
-http://jakarta.apache.org/tomcat/faq/
+http://tomcat.apache.org/faq/



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



DO NOT REPLY [Bug 37746] New: - JspC.setJspFiles() uses space as a delimiter

2005-12-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37746.
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=37746

   Summary: JspC.setJspFiles() uses space as a delimiter
   Product: Tomcat 5
   Version: 5.5.9
  Platform: All
OS/Version: All
Status: NEW
  Severity: minor
  Priority: P4
 Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


According to its comment, setJspFiles() takes a comma-separated list of files,
but the StringTokenizer it uses separates by comma or space:
  StringTokenizer tok = new StringTokenizer(jspFiles,  ,);

Either the space should be removed from  , (my preference, to allow filenames
with spaces), or the comment should be fixed.

-- 
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 34560] - AuthenticatorBase tests and applies disableProxyCaching even if no auth-constraints

2005-12-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34560.
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=34560





--- Additional Comments From [EMAIL PROTECTED]  2005-12-02 03:05 ---
Let me try to be short and clear with the following summary.

Transport constraints (CONFIDENTIAL, NONE) make it https or not. It has nothing
to do with auth.constraints (identification of roles).

In real life, you can be anonymous over http, anonymous over https, logged in
over http, logged in over https. This is the orthogonality I was referring to,
in case I wasn't clear.

Now, the headers in questions are not about transport nor authentication at all.
They are about caching. HOWEVER, caching must not occur in front of
aurhenticated ressources, since the authentication must be challenged on every
hit from end to end (user-agent to server).

Therefore, anti-caching headers must be added only to authenticated ressources,
NO MATTER what the transport constraint is.

Sorry if I sound irritated, the issue is fairly simple. So is the fix. Without
that fix, tomcat will never be able to perform well under https as demonstrated
in the same xml above.

The reality is horrible: all page components like css, js, gif, jpg, etc...
served under https (to avoid mixed security page warnings) are polled every
refresh. They may result in 304, but that is already too much since it took a
full network round trip for every resource. Please trust me, it is night and day
after we hacked in a 're-caching' servletfilter workaround.

-- 
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 36863] - Space seperated cookie value text returned in quotes

2005-12-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36863.
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=36863





--- Additional Comments From [EMAIL PROTECTED]  2005-12-02 04:13 ---
Hello,

I've downloaded 5.5.12 and have tested the app and it acts the same way as the 
other version.

Can you direct me to the package(s) that handle the tomcat cookie parsing?  
I'm going to need a little direction since I haven't done any core tomcat 
development.

Thank you.

-- 
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]



Re: DO NOT REPLY [Bug 36318] - CRC error in compressed sample.war file

2005-12-01 Thread Yoav Shapira
Hi,
I don't think sample.war is generated during the build: it's a static
file that lives at
http://svn.apache.org/viewcvs.cgi/tomcat/container/tc5.5.x/webapps/docs/appdev/sample/.

Are you saying the md5 checksum for one of the distro binaries itself
is wrong?  I've been generating them the same way for a couple of
years now, right on minotaur with the default md5 command, the same
one that virtually every other Apache project uses to sign its
binaries...

Yoav

On 12/1/05, Mark Thomas [EMAIL PROTECTED] wrote:
 Yoav,

 Can you check your build please? It appears something isn't quite
 right with the sample.war you generate.

 Thanks,

 Mark

 [EMAIL PROTECTED] wrote:
  DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
  RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
  http://issues.apache.org/bugzilla/show_bug.cgi?id=36318.
  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=36318
 
 
  [EMAIL PROTECTED] changed:
 
 What|Removed |Added
  
   Status|REOPENED|RESOLVED
   Resolution||FIXED
 
 
 
 
  --- Additional Comments From [EMAIL PROTECTED]  2005-12-01 22:22 ---
  OK, fixed again. It will take a couple of hours to sync to the main web 
  site.
 



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




--
Yoav Shapira
System Design and Management Fellow
MIT Sloan School of Management
Cambridge, MA, USA
[EMAIL PROTECTED] / www.yoavshapira.com

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



DO NOT REPLY [Bug 36863] - Space seperated cookie value text returned in quotes

2005-12-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36863.
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=36863





--- Additional Comments From [EMAIL PROTECTED]  2005-12-02 05:50 ---
(In reply to comment #5)
 Hello,
 I've downloaded 5.5.12 and have tested the app and it acts the same way as 
the 
 other version.
 Can you direct me to the package(s) that handle the tomcat cookie parsing?  
 I'm going to need a little direction since I haven't done any core tomcat 
 development.
 Thank you.

It's in o.a.t.u.http.ServerCookie.  You'll find it under connectors/util/java 
in the source distro.




-- 
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 37750] New: - SocketException: Connection reset causes severe error

2005-12-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37750.
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=37750

   Summary: SocketException: Connection reset causes severe error
   Product: Tomcat 5
   Version: 5.5.12
  Platform: PC
OS/Version: Linux
Status: NEW
  Keywords: ErrorMessage
  Severity: minor
  Priority: P2
 Component: Connector:HTTP
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Lately (looks like after upgrading from 5.5.9) following SocketException errors
appear in catelina.out

SEVERE: Socket error caused by remote host /206.27.238.247
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.readFully(Unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown 
Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown 
Source)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.handshake(JSSESocketFactory.java:119)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:520)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)

It looks like somebody on the internet is accessing our https connection
directly without being redirected from a http connection.

Should a connection reset cause a severe exception?

-- 
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]



svn commit: r351608 - in /tomcat/sandbox/java/org/apache/tomcat/standalone: ./ Tomcat.java

2005-12-01 Thread costin
Author: costin
Date: Thu Dec  1 22:07:50 2005
New Revision: 351608

URL: http://svn.apache.org/viewcvs?rev=351608view=rev
Log:
I'm sure there are other good examples on starting tomcat without
server.xml, I just wanted to have a simple and minimal one I can use here.



Added:
tomcat/sandbox/java/org/apache/tomcat/standalone/
tomcat/sandbox/java/org/apache/tomcat/standalone/Tomcat.java

Added: tomcat/sandbox/java/org/apache/tomcat/standalone/Tomcat.java
URL: 
http://svn.apache.org/viewcvs/tomcat/sandbox/java/org/apache/tomcat/standalone/Tomcat.java?rev=351608view=auto
==
--- tomcat/sandbox/java/org/apache/tomcat/standalone/Tomcat.java (added)
+++ tomcat/sandbox/java/org/apache/tomcat/standalone/Tomcat.java Thu Dec  1 
22:07:50 2005
@@ -0,0 +1,74 @@
+/*
+ */
+package org.apache.tomcat.standalone;
+
+import java.io.File;
+import java.io.IOException;
+
+import org.apache.catalina.connector.Connector;
+import org.apache.catalina.core.StandardEngine;
+import org.apache.catalina.core.StandardHost;
+import org.apache.catalina.core.StandardServer;
+import org.apache.catalina.core.StandardService;
+import org.apache.catalina.startup.HostConfig;
+
+public class Tomcat {
+
+public static void main( String args[] ) {
+try {
+startTomcat();
+} catch (Exception e) {
+// TODO Auto-generated catch block
+e.printStackTrace();
+}
+}
+
+private static void startTomcat() throws Exception {
+String catalinaHome = System.getProperty(catalina.home);
+if(catalinaHome==null) {
+catalinaHome=System.getProperty(user.dir);
+File home = new File(catalinaHome);
+if (!home.isAbsolute()) {
+try {
+catalinaHome = home.getCanonicalPath();
+} catch (IOException e) {
+catalinaHome = home.getAbsolutePath();
+}
+}
+System.setProperty(catalina.home, catalinaHome);
+}
+
+if( System.getProperty(catalina.base) == null ) {
+System.setProperty(catalina.base, catalinaHome);
+}
+System.setProperty(catalina.useNaming, false);
+
+StandardServer server = new StandardServer();
+server.setPort( -1 );
+//tc.setServer( server );
+
+StandardService service = new StandardService();
+server.addService( service );
+
+Connector connector = new Connector(HTTP/1.1);
+service.addConnector( connector );
+connector.setPort( 8000 );
+
+StandardEngine eng = new StandardEngine();
+eng.setName( default );
+eng.setDefaultHost(localhost);
+service.setContainer(eng);
+
+StandardHost host = new StandardHost();
+host.setName( localhost);
+host.setAppBase(webapps);
+HostConfig hconfig = new HostConfig();
+host.addLifecycleListener( hconfig );
+
+eng.addChild( host );
+
+server.initialize();
+
+server.start();
+}
+}



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