DO NOT REPLY [Bug 44162] New: - Problem getting GlobalNamingResources DataSource DBCP from Custom JAAS

2008-01-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=44162

   Summary: Problem getting GlobalNamingResources DataSource DBCP
from Custom JAAS
   Product: Tomcat 6
   Version: 6.0.14
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Keywords: ErrorMessage
  Severity: critical
  Priority: P2
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I am trying to implement a custom JAAS login module for tomcat 6.0.14 that is
working now over 5.5.25.

This configuration works perfectly on tomcat 5.5.25 but not over 6.0.14.

I think the problem is with accesing JNDI objects out of context without
ResourceLink element. I need to access this way from LoginModule implementation.

The configuration is the following:

server.xml:

  
  


  



...

...

  
  

The class that implements 'LoginModule' interface has the following code in
initialize method:

  DataSource dataSourceSQL = null;
  try {
Context ctx = new InitialContext();
Context envContext = (Context) ctx.lookup("java:comp/env");
dataSourceSQL = (DataSource) 
  envContext.lookup("jdbc/dataSource_usuarios_aplicaciones_Local");
LoginModuloChua.entidadesDAO = new EntidadesDAO(dataSourceSQL);
  } catch (NamingException ex) {
LoginModuloChua.entidadesDAO = null;
log_ERROR("Se ha producido una NamingException con " +
  "nombreJndiDBCP: '" + this.nombreJndiDBCP + "' en " +
  "'initialize' -> iniciando 'entidadesDAO': " +
  ex.getMessage());
ex.printStackTrace();
  }

And always throws the following exception:

  javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

-- 
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 28256] - WebappClassLoader.findClassInternal() permission problems

2008-01-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=28256





--- Additional Comments From [EMAIL PROTECTED]  2008-01-03 00:57 ---
(In reply to comment #4)
> Closing per Yoav's comments.

Would it be possible to reopen this issue? It is still relevant in 6.0.14.
See 
http://archives.java.sun.com/cgi-bin/wa?A2=ind0712&L=JINI-USERS&D=1&T=0&O=D&X=10B3EB026AA42B13C9&Y=michal.kleczek%40xpro.biz&P=6764

Michal Kleczek
XPro

-- 
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: r608429 - in /tomcat/connectors/trunk/jk: native/common/jk_ajp12_worker.c native/common/jk_map.c native/common/jk_status.c native/common/jk_util.c xdocs/miscellaneous/changelog.xml

2008-01-03 Thread rjung
Author: rjung
Date: Thu Jan  3 02:44:21 2008
New Revision: 608429

URL: http://svn.apache.org/viewvc?rev=608429&view=rev
Log:
Use thread safe strtok_r on more platforms, especially AIX.
Detect multi threaded context using define _MT_CODE_PTHREAD
instead of _REENTRANT, which is not used on all platforms.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_ajp12_worker.c
tomcat/connectors/trunk/jk/native/common/jk_map.c
tomcat/connectors/trunk/jk/native/common/jk_status.c
tomcat/connectors/trunk/jk/native/common/jk_util.c
tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml

Modified: tomcat/connectors/trunk/jk/native/common/jk_ajp12_worker.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_ajp12_worker.c?rev=608429&r1=608428&r2=608429&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_ajp12_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_ajp12_worker.c Thu Jan  3 
02:44:21 2008
@@ -540,7 +540,7 @@
 char *line = NULL;
 char *name = NULL;
 char *value = NULL;
-#ifdef _REENTRANT
+#ifdef _MT_CODE_PTHREAD
 char *lasts;
 #endif
 
@@ -588,7 +588,7 @@
 jk_log(l, JK_LOG_DEBUG, "ajpv12_handle_response, read %s=%s", name,
value);
 if (0 == strcmp("Status", name)) {
-#ifdef _REENTRANT
+#ifdef _MT_CODE_PTHREAD
 char *numeric = strtok_r(value, " \t", &lasts);
 #else
 char *numeric = strtok(value, " \t");
@@ -600,7 +600,7 @@
"ajpv12_handle_response, invalid status code");
 return JK_FALSE;
 }
-#ifdef _REENTRANT
+#ifdef _MT_CODE_PTHREAD
 reason = jk_pool_strdup(s->pool, strtok_r(NULL, " \t", &lasts));
 #else
 reason = jk_pool_strdup(s->pool, strtok(NULL, " \t"));

Modified: tomcat/connectors/trunk/jk/native/common/jk_map.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_map.c?rev=608429&r1=608428&r2=608429&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_map.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_map.c Thu Jan  3 02:44:21 2008
@@ -249,7 +249,7 @@
 const char *l = jk_map_get_string(m, name, def);
 char **ar = NULL;
 
-#ifdef _REENTRANT
+#ifdef _MT_CODE_PTHREAD
 char *lasts;
 #endif
 
@@ -269,7 +269,7 @@
  * GS, in addition to VG's patch, we now need to
  * strtok also by a "*"
  */
-#ifdef _REENTRANT
+#ifdef _MT_CODE_PTHREAD
 for (p = strtok_r(v, " \t,", &lasts);
  p; p = strtok_r(NULL, " \t,", &lasts))
 #else
@@ -305,7 +305,7 @@
 {
 const char *l = jk_map_get_string(m, name, def);
 
-#ifdef _REENTRANT
+#ifdef _MT_CODE_PTHREAD
 char *lasts;
 #endif
 
@@ -326,7 +326,7 @@
  * GS, in addition to VG's patch, we now need to
  * strtok also by a "*"
  */
-#ifdef _REENTRANT
+#ifdef _MT_CODE_PTHREAD
 for (p = strtok_r(v, " \t,", &lasts);
  p; p = strtok_r(NULL, " \t,", &lasts))
 #else

Modified: tomcat/connectors/trunk/jk/native/common/jk_status.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_status.c?rev=608429&r1=608428&r2=608429&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_status.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_status.c Thu Jan  3 02:44:21 
2008
@@ -929,7 +929,7 @@
 {
 jk_map_t *m;
 status_worker_t *w = p->worker;
-#ifdef _REENTRANT
+#ifdef _MT_CODE_PTHREAD_MT_CODE_PTHREAD
 char *lasts;
 #endif
 char *param;
@@ -978,7 +978,7 @@
 return JK_FALSE;
 }
 
-#ifdef _REENTRANT
+#ifdef _MT_CODE_PTHREAD_MT_CODE_PTHREAD
 for (param = strtok_r(query, "&", &lasts);
  param; param = strtok_r(NULL, "&", &lasts)) {
 #else

Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.c?rev=608429&r1=608428&r2=608429&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_util.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.c Thu Jan  3 02:44:21 2008
@@ -1756,7 +1756,7 @@
 char **jk_parse_sysprops(jk_pool_t *p, const char *sysprops)
 {
 char **rc = NULL;
-#ifdef _REENTRANT
+#ifdef _MT_CODE_PTHREAD
 char *lasts;
 #endif
 
@@ -1774,7 +1774,7 @@
 rc = jk_pool_alloc(p, (num_of_prps + 1) * sizeof(char *));
 if (rc) {
 unsigned i = 0;
-#ifdef _REENTRANT
+#ifdef _MT_CODE_PTHREAD
 char *tmp = strtok_r(prps, "*", &lasts);
 #else
 char *tmp = strtok(prps, "*");
@@ -1782,7 +1782,7 @@
 
 while (tmp && i < num_of_prps) {
 

DO NOT REPLY [Bug 44116] - Multiple JSESSIONID handling with overlapping domains does not work

2008-01-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=44116





--- Additional Comments From [EMAIL PROTECTED]  2008-01-03 02:45 ---
The last patch has been successfully tested with tomcat-connectors version
1.2.25 so there is no feature regression.
I'm going to package the modules for apache 1.3 and apache 2.0 and it will be
tagged STABLE on our production sites in few minutes.


-- 
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: r608434 - in /tomcat/connectors/trunk/jk: native/common/jk_util.c xdocs/miscellaneous/changelog.xml

2008-01-03 Thread rjung
Author: rjung
Date: Thu Jan  3 02:48:05 2008
New Revision: 608434

URL: http://svn.apache.org/viewvc?rev=608434&view=rev
Log:
Use thread safe localtime_r where appropriate.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_util.c
tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml

Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.c?rev=608434&r1=608433&r2=608434&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_util.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.c Thu Jan  3 02:48:05 2008
@@ -436,6 +436,9 @@
 {
 time_t t;
 struct tm *tms;
+#ifdef _MT_CODE_PTHREAD
+struct tm res;
+#endif
 int done;
 /* We want to use a fixed maximum size buffer here.
  * If we would dynamically adjust it to the real format
@@ -488,7 +491,11 @@
 #else
 t = time(NULL);
 #endif
+#ifdef _MT_CODE_PTHREAD
+tms = localtime_r(&t, &res);
+#else
 tms = localtime(&t);
+#endif
 if (log_fmt[0])
 done = (int)strftime(str, len, log_fmt, tms);
 else

Modified: tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml?rev=608434&r1=608433&r2=608434&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml Thu Jan  3 
02:48:05 2008
@@ -44,6 +44,9 @@
   
 
   
+Use thread safe localtime_r where appropriate. (rjung)
+  
+  
 Use thread safe strtok_r on more platforms, especially AIX. (rjung)
   
   



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



svn commit: r608427 - /tomcat/connectors/trunk/jk/native/common/jk_map.c

2008-01-03 Thread rjung
Author: rjung
Date: Thu Jan  3 02:42:16 2008
New Revision: 608427

URL: http://svn.apache.org/viewvc?rev=608427&view=rev
Log:
Minor optimization: trim already returns strlen,
so let's use it.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_map.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_map.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_map.c?rev=608427&r1=608426&r2=608427&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_map.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_map.c Thu Jan  3 02:42:16 2008
@@ -474,9 +474,7 @@
 if (v) {
 *v = '\0';
 v++;
-trim(prp);
-trim(v);
-if (strlen(v) && strlen(prp)) {
+if (trim(v) && trim(prp)) {
 if (treatment == JK_MAP_HANDLE_RAW) {
 v = jk_pool_strdup(&m->p, v);
 }



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



svn commit: r608449 - in /tomcat/connectors/trunk/jk: native/common/jk_lb_worker.c xdocs/miscellaneous/changelog.xml

2008-01-03 Thread rjung
Author: rjung
Date: Thu Jan  3 03:07:07 2008
New Revision: 608449

URL: http://svn.apache.org/viewvc?rev=608449&view=rev
Log:
Fix BZ 44116: Handling of multiple JSESSIONID cookies.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?rev=608449&r1=608448&r2=608449&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Thu Jan  3 03:07:07 
2008
@@ -358,25 +358,27 @@
  * Session cookie was found, get it's value
  */
 char *id_end;
+size_t sz;
 ++id_start;
-id_start = jk_pool_strdup(s->pool, id_start);
-if ((id_end = strchr(id_start, ';')) != NULL) {
-*id_end = '\0';
-}
-if ((id_end = strchr(id_start, ',')) != NULL) {
-*id_end = '\0';
+if ((id_end = strpbrk(id_start, ";,")) != NULL)
+sz = id_end - id_start;
+else {
+sz = strlen(id_start);
+id_end = id_start + sz;
 }
 if (result == NULL) {
-result = id_start;
+result = jk_pool_alloc(s->pool, sz + 1);
+memcpy(result, id_start, sz);
+result[sz] = '\0';
 }
 else {
 size_t osz = strlen(result) + 1;
-size_t sz = osz + strlen(id_start) + 1;
 result =
-jk_pool_realloc(s->pool, sz, result, osz);
+jk_pool_realloc(s->pool, osz + sz + 1, result, 
osz);
 strcat(result, ";");
-strcat(result, id_start);
+strncat(result, id_start, sz);
 }
+id_start = id_end;
 }
 }
 }

Modified: tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml?rev=608449&r1=608448&r2=608449&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml Thu Jan  3 
03:07:07 2008
@@ -44,7 +44,10 @@
   
 
   
-Use thread safe localtime_r where appropriate. (rjung)
+44116: Fix handling of multiple JSESSIONID cookies. (rjung)
+  
+  
+37850: Use thread safe localtime_r where appropriate. 
(rjung)
   
   
 Use thread safe strtok_r on more platforms, especially AIX. (rjung)
@@ -53,15 +56,16 @@
 Status: Improve XSS hardening. (rjung)
   
   
-Move initialization of service members with defaults from web server
-specific code to our generic jk_init_ws_service() function. (rjung)
+35303: Move initialization of service members with defaults 
from
+web server specific code to our generic jk_init_ws_service() function. 
(rjung)
   
-  
-Common: Add missing prepost cping/cpong directly after connect
+  
+36385: Add missing prepost cping/cpong directly after 
connect
 in case prepost cping is used, but no connect cping. (rjung)
-  
+  
   
-Apache: Enhance robustness of message formating in jk_error_exit(). 
(rjung)
+37322: Apache: Enhance robustness of message formating
+in jk_error_exit(). (rjung)
   
   
 44147: Multiple load balancing workers problem. (rjung)



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



svn commit: r608451 - /tomcat/connectors/trunk/jk/native/common/jk_status.c

2008-01-03 Thread rjung
Author: rjung
Date: Thu Jan  3 03:14:18 2008
New Revision: 608451

URL: http://svn.apache.org/viewvc?rev=608451&view=rev
Log:
Ooops. Wrong define name.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_status.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_status.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_status.c?rev=608451&r1=608450&r2=608451&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_status.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_status.c Thu Jan  3 03:14:18 
2008
@@ -929,7 +929,7 @@
 {
 jk_map_t *m;
 status_worker_t *w = p->worker;
-#ifdef _MT_CODE_PTHREAD_MT_CODE_PTHREAD
+#ifdef _MT_CODE_PTHREAD
 char *lasts;
 #endif
 char *param;
@@ -978,7 +978,7 @@
 return JK_FALSE;
 }
 
-#ifdef _MT_CODE_PTHREAD_MT_CODE_PTHREAD
+#ifdef _MT_CODE_PTHREAD
 for (param = strtok_r(query, "&", &lasts);
  param; param = strtok_r(NULL, "&", &lasts)) {
 #else



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



DO NOT REPLY [Bug 44116] - Multiple JSESSIONID handling with overlapping domains does not work

2008-01-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=44116


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2008-01-03 03:23 ---
Thank you for your quick feedback.
The patch has been committed and will be part of 1.2.27.
I'm closing this now, don't hesitate to reopen, if needed.

-- 
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: r608454 - in /tomcat/connectors/trunk/jk: native/common/jk_status.c xdocs/miscellaneous/changelog.xml

2008-01-03 Thread rjung
Author: rjung
Date: Thu Jan  3 03:28:29 2008
New Revision: 608454

URL: http://svn.apache.org/viewvc?rev=608454&view=rev
Log:
Include server local time in status worker output.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_status.c
tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml

Modified: tomcat/connectors/trunk/jk/native/common/jk_status.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_status.c?rev=608454&r1=608453&r2=608454&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_status.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_status.c Thu Jan  3 03:28:29 
2008
@@ -149,6 +149,10 @@
 #define JK_STATUS_WAIT_AFTER_UPDATE"3"
 #define JK_STATUS_REFRESH_DEF  "10"
 #define JK_STATUS_ESC_CHARS("<>?\"")
+#define JK_STATUS_TIME_FMT_HTML"%a, %d %b %Y %T %Z"
+#define JK_STATUS_TIME_FMT_TEXT"%Y%m%d%H%M%S"
+#define JK_STATUS_TIME_FMT_TZ  "%Z"
+#define JK_STATUS_TIME_BUF_SZ  (80)
 
 #define JK_STATUS_HEAD "\n" \
"prefix, name, key, value);
+}
+else {
+jk_printf(s, "%s.%s=%ld\n", w->prefix, key, value);
+}
+}
+
 static void jk_print_prop_att_uint32(jk_ws_service_t *s, status_worker_t *w,
  const char *name,
  const char *key, jk_uint32_t value)
@@ -3209,6 +3232,23 @@
 }
 
 if (!err) {
+char buf_time[JK_STATUS_TIME_BUF_SZ];
+char buf_tz[JK_STATUS_TIME_BUF_SZ];
+int rc_time;
+time_t clock = time(NULL);
+long unix_seconds = (long)clock;
+#ifdef _MT_CODE_PTHREAD
+struct tm res;
+struct tm *tms = localtime_r(&clock, &res);
+#else
+struct tm *tms = localtime(&clock);
+#endif
+if (mime == JK_STATUS_MIME_HTML)
+rc_time = strftime(buf_time, JK_STATUS_TIME_BUF_SZ, 
JK_STATUS_TIME_FMT_HTML, tms);
+else {
+rc_time = strftime(buf_time, JK_STATUS_TIME_BUF_SZ, 
JK_STATUS_TIME_FMT_TEXT, tms);
+}
+strftime(buf_tz, JK_STATUS_TIME_BUF_SZ, JK_STATUS_TIME_FMT_TZ, tms);
 if (cmd == JK_STATUS_CMD_UPDATE) {
 /* lock shared memory */
 jk_shm_lock();
@@ -3278,6 +3318,13 @@
 if ((cmd == JK_STATUS_CMD_LIST) ||
 (cmd == JK_STATUS_CMD_SHOW) ||
 (cmd == JK_STATUS_CMD_VERSION)) {
+if (rc_time > 0 ) {
+jk_print_xml_start_elt(s, w, 0, 0, "time");
+jk_print_xml_att_string(s, 2, "datetime", buf_time);
+jk_print_xml_att_string(s, 2, "tz", buf_tz);
+jk_print_xml_att_long(s, 2, "unix", unix_seconds);
+jk_print_xml_stop_elt(s, 0, 1);
+}
 jk_print_xml_start_elt(s, w, 0, 0, "software");
 jk_print_xml_att_string(s, 2, "web_server", 
s->server_software);
 jk_print_xml_att_string(s, 2, "jk_version", 
JK_EXPOSED_VERSION);
@@ -3304,6 +3351,13 @@
 if ((cmd == JK_STATUS_CMD_LIST) ||
 (cmd == JK_STATUS_CMD_SHOW) ||
 (cmd == JK_STATUS_CMD_VERSION)) {
+if (rc_time > 0) {
+jk_puts(s, "Time:");
+jk_printf(s, " datetime=%s", buf_time);
+jk_printf(s, " tz=%s", buf_tz);
+jk_printf(s, " unix=%ld", unix_seconds);
+jk_puts(s, "\n");
+}
 jk_puts(s, "Software:");
 jk_printf(s, " web_server=\"%s\"", s->server_software);
 jk_printf(s, " jk_version=%s", JK_EXPOSED_VERSION);
@@ -3328,6 +3382,11 @@
 if ((cmd == JK_STATUS_CMD_LIST) ||
 (cmd == JK_STATUS_CMD_SHOW) ||
 (cmd == JK_STATUS_CMD_VERSION)) {
+if (rc_time > 0) {
+jk_print_prop_att_string(s, w, NULL, "time_datetime", 
buf_time);
+jk_print_prop_att_string(s, w, NULL, "time_tz", 
buf_tz);
+jk_print_prop_att_long(s, w, NULL, "time_unix", 
unix_seconds);
+}
 jk_print_prop_att_string(s, w, NULL, "web_server", 
s->server_software);
 jk_print_prop_att_string(s, w, NULL, "jk_version", 
JK_EXPOSED_VERSION);
 }
@@ -3367,10 +3426,15 @@
 (cmd == JK_STATUS_CMD_SHOW) ||
 (cmd == JK_STATUS_CMD_VERSION)) {
 jk_putv(s, "Server Version:",
-s->server_software, "\n", NULL);
+s->server_software, 
"   ", NULL);
+

Re: [ANN] Apache Tomcat JK 1.2.26 Web Server Connector released

2008-01-03 Thread Mladen Turk

Tim Whittington wrote:

Binary builds of 1.2.26 for various platforms are available now from
http://sourceforge.net/projects/timsjk/
These include builds of a patched IIS 5/6 ISAPI Redirector that support
HTTP 1.1 chunked encoding (and thus keep-alives on dynamic content).



Hi Tim,

Can you create a patch against trunk, but with one slight ;) change
to your code, and that is to #ifdef all the chunked code (at least
relevant) out by some preproc directive like JK_IIS_CHUNKED

so:
#ifdef JK_IIS_CHUNKED
// any change made to the part of the code.
#endif

You don't need to rule out all the stuff, but only one
that are affecting current defaults.

The other solution is to have some global flag (configurable)
that will allow with a single directive to switch out all
the chunked logic with defaults to be as is.

Can you do that?

I'd prefer the second option if possible, unless something
needs to be changed before actually reading the configuration.

Regards,
Mladen



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



Re: [ANN] Apache Tomcat JK 1.2.26 Web Server Connector released

2008-01-03 Thread Rainer Jung
Just in case there's any synergy between them: related to chunked
encoding for IIS there are two BZ entries/patches:

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

Tim's patch chunked encoding for responses

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

Patch for chunked encoding of requests. Unclear status.

Regards,

Rainer

Mladen Turk schrieb:
> Tim Whittington wrote:
>> Binary builds of 1.2.26 for various platforms are available now from
>> http://sourceforge.net/projects/timsjk/
>> These include builds of a patched IIS 5/6 ISAPI Redirector that support
>> HTTP 1.1 chunked encoding (and thus keep-alives on dynamic content).
>>
> 
> Hi Tim,
> 
> Can you create a patch against trunk, but with one slight ;) change
> to your code, and that is to #ifdef all the chunked code (at least
> relevant) out by some preproc directive like JK_IIS_CHUNKED
> 
> so:
> #ifdef JK_IIS_CHUNKED
> // any change made to the part of the code.
> #endif
> 
> You don't need to rule out all the stuff, but only one
> that are affecting current defaults.
> 
> The other solution is to have some global flag (configurable)
> that will allow with a single directive to switch out all
> the chunked logic with defaults to be as is.
> 
> Can you do that?
> 
> I'd prefer the second option if possible, unless something
> needs to be changed before actually reading the configuration.
> 
> Regards,
> Mladen

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



Re: [ANN] Apache Tomcat JK 1.2.26 Web Server Connector released

2008-01-03 Thread Mladen Turk

Rainer Jung wrote:

Just in case there's any synergy between them: related to chunked
encoding for IIS there are two BZ entries/patches:



Yes, I'm aware of all the history ;)
I still think this is too huge change for 1.2 code base,
but if done via conditional compile, it might be a good
foundation for 1.3 code.
In that case we could even produce 'experimental' binary
with JK_IIS_CHUNKED define for further testings via 1.2
branch. Tim's code has some really cool stuff, but his
patch (currently) touches many core functions without
and conditional 'configurable' directives that would
allow to fall back to the 'standard operation'.
If Tim resolves that, I'll be the first one giving +1
for 1.2 inclusion.

Regards,
Mladen

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



DO NOT REPLY [Bug 41263] - servletRequest.getRemotePort() returns incorrect value when behind mod_jk

2008-01-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=41263


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||LATER




--- Additional Comments From [EMAIL PROTECTED]  2008-01-03 05:54 ---
This needs a protocol extension for AJP13 (or whatever the version number will
then be).
Would be nice to also build in an easier protocol extensibility.

-- 
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 35959] - mod_jk not independant of UseCanonicalName

2008-01-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=35959


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WONTFIX |




--- Additional Comments From [EMAIL PROTECTED]  2008-01-03 05:36 ---
Could you please explain your use case? I think it's good, that you can switch
the behaviour with UseCanonicalName, because it makes the behaviour of the
reverse proxy consistent with a single directive. Why do you need to have
UseCanonicalName set to off and still want mod_jk to send the data extracted
from ServerName to Tomcat?

-- 
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 37850] - Core dumps on Solaris under concurrent load.

2008-01-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=37850





--- Additional Comments From [EMAIL PROTECTED]  2008-01-03 05:32 ---
We switch to a thread safe variant of localtime() in version 1.2.27.
I still doubt, that this was the cause.

-- 
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 34526] - Truncated content in decompressed requests from mod_deflate

2008-01-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=34526


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WONTFIX |




--- Additional Comments From [EMAIL PROTECTED]  2008-01-03 10:44 ---
There is a fix for mod_deflate in httpd 2.2.6+. I'm now investigating, what we
need to do to make it work with mod_jk.

1) Your example won't work, since mod_deflate can't inflate compressed content
which uses FLaGs in the sense of RFC 1952. If I use gzip like you did to
compress a file, it includes the file name as a flag and mod_deflate can not
handle that. A better test case is

cat myfile | gzip -9c | curl ...

2) In mod_jk we extract the Content-Length early in the content handler, which
is before the filter is running. So we still get the incorrect length. Let's
see, if we can do someting better about that...

-- 
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 44162] - Problem getting GlobalNamingResources DataSource DBCP from Custom JAAS

2008-01-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=44162


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2008-01-03 11:51 ---
You are not obtaining the initial context correctly for a realm that is not
inside a context. As per my users list response, look at the DataSourceRealm 
code.

-- 
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 28256] - WebappClassLoader.findClassInternal() permission problems

2008-01-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=28256





--- Additional Comments From [EMAIL PROTECTED]  2008-01-03 11:54 ---
Can you provide a publicly accessible reference?

Failing that, a test case and a patch would be good.

-- 
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: svn commit: r608329 - /tomcat/tc6.0.x/trunk/STATUS.txt

2008-01-03 Thread Mark Thomas
[EMAIL PROTECTED] wrote:
> +  -1: fhanik - lets not do e.printStackTrace, handle the error and log it 
> correctly,

Fair point. I'll fix that.

also, have the diff only change lines that are actually changed. makes it
easier to review

Which lines do you mean? The diff looks normal to me.

Mark


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



svn commit: r608654 - in /tomcat/trunk: java/org/apache/catalina/ha/session/LocalStrings.properties java/org/apache/catalina/ha/session/SerializablePrincipal.java test/org/apache/catalina/ha/session/T

2008-01-03 Thread markt
Author: markt
Date: Thu Jan  3 14:04:48 2008
New Revision: 608654

URL: http://svn.apache.org/viewvc?rev=608654&view=rev
Log:
Improve fix for 43840 with better error handling, a better variable name and a 
bit of other clean-up.

Modified:
tomcat/trunk/java/org/apache/catalina/ha/session/LocalStrings.properties
tomcat/trunk/java/org/apache/catalina/ha/session/SerializablePrincipal.java

tomcat/trunk/test/org/apache/catalina/ha/session/TestSerializablePrincipal.java

Modified: 
tomcat/trunk/java/org/apache/catalina/ha/session/LocalStrings.properties
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/LocalStrings.properties?rev=608654&r1=608653&r2=608654&view=diff
==
--- tomcat/trunk/java/org/apache/catalina/ha/session/LocalStrings.properties 
(original)
+++ tomcat/trunk/java/org/apache/catalina/ha/session/LocalStrings.properties 
Thu Jan  3 14:04:48 2008
@@ -109,3 +109,4 @@
 standardSession.setAttribute.ise=setAttribute: Session already invalidated
 standardSession.setAttribute.namenull=setAttribute: name parameter cannot be 
null
 standardSession.sessionCreated=Created Session id = {0}
+serializablePrincipal.readPrincipal.cnfe=readPrincipal: Failed to recreate 
user Principal
\ No newline at end of file

Modified: 
tomcat/trunk/java/org/apache/catalina/ha/session/SerializablePrincipal.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/SerializablePrincipal.java?rev=608654&r1=608653&r2=608654&view=diff
==
--- tomcat/trunk/java/org/apache/catalina/ha/session/SerializablePrincipal.java 
(original)
+++ tomcat/trunk/java/org/apache/catalina/ha/session/SerializablePrincipal.java 
Thu Jan  3 14:04:48 2008
@@ -19,6 +19,7 @@
 package org.apache.catalina.ha.session;
 
 
+import java.io.IOException;
 import java.io.ObjectInput;
 import java.io.ObjectOutput;
 import java.io.Serializable;
@@ -30,6 +31,7 @@
 
 import org.apache.catalina.Realm;
 import org.apache.catalina.realm.GenericPrincipal;
+import org.apache.catalina.util.StringManager;
 
 
 /**
@@ -42,6 +44,14 @@
  */
 public class SerializablePrincipal  implements java.io.Serializable {
 
+protected static org.apache.juli.logging.Log log =
+org.apache.juli.logging.LogFactory.getLog(SerializablePrincipal.class);
+
+/**
+ * The string manager for this package.
+ */
+protected static StringManager sm =
+StringManager.getManager(Constants.Package);
 
 // --- Constructors
 
@@ -201,7 +211,8 @@
 userPrincipal);
 }
 
-public static GenericPrincipal readPrincipal(ObjectInput in, Realm realm) 
throws java.io.IOException{
+public static GenericPrincipal readPrincipal(ObjectInput in, Realm realm)
+throws IOException, ClassNotFoundException {
 String name = in.readUTF();
 boolean hasPwd = in.readBoolean();
 String pwd = null;
@@ -209,21 +220,23 @@
 int size = in.readInt();
 String[] roles = new String[size];
 for ( int i=0; ihttp://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/ha/session/TestSerializablePrincipal.java?rev=608654&r1=608653&r2=608654&view=diff
==
--- 
tomcat/trunk/test/org/apache/catalina/ha/session/TestSerializablePrincipal.java 
(original)
+++ 
tomcat/trunk/test/org/apache/catalina/ha/session/TestSerializablePrincipal.java 
Thu Jan  3 14:04:48 2008
@@ -82,6 +82,9 @@
 } catch (IOException e) {
 e.printStackTrace();
 fail("ioe de-serializing principal");
+} catch (ClassNotFoundException e) {
+e.printStackTrace();
+fail("cnfe de-serializing principal");
 }
 
 // Now test how similar original and de-serialized versions are



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



Re: svn commit: r608329 - /tomcat/tc6.0.x/trunk/STATUS.txt

2008-01-03 Thread Filip Hanik - Dev Lists

Mark Thomas wrote:

[EMAIL PROTECTED] wrote:
  

+  -1: fhanik - lets not do e.printStackTrace, handle the error and log it 
correctly,



Fair point. I'll fix that.

also, have the diff only change lines that are actually changed. makes it
easier to review

Which lines do you mean? The diff looks normal to me.
  

pretty much all the lines before
"public class SerializablePrincipal" are non functional changes, but 
cosmetic.


and

-public SerializablePrincipal()
-{
+public SerializablePrincipal() {
super();
}
+
+




and so on

Filip

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



svn commit: r608666 - /tomcat/tc6.0.x/trunk/STATUS.txt

2008-01-03 Thread markt
Author: markt
Date: Thu Jan  3 14:54:47 2008
New Revision: 608666

URL: http://svn.apache.org/viewvc?rev=608666&view=rev
Log:
Address Filip's concerns with a new patch.

Modified:
tomcat/tc6.0.x/trunk/STATUS.txt

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=608666&r1=608665&r2=608666&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Thu Jan  3 14:54:47 2008
@@ -50,10 +50,9 @@
 
 * Fix http://issues.apache.org/bugzilla/show_bug.cgi?id=43840
   Include user principal if possible when serializing / de-serializing
-  http://svn.apache.org/viewvc?rev=607596&view=rev
-  http://svn.apache.org/viewvc?rev=607597&view=rev
-  +1: markt, funkman
-  -1: fhanik - lets not do e.printStackTrace, handle the error and log it 
correctly, also, have the diff only change lines that are actually changed. 
makes it easier to review
+  http://people.apache.org/~markt/dev/bug43840.txt
+  +1: markt
+  -1:
 
 * Improve Jasper docs. Note rather than remove unused option, it will be
   deprecated in 6.0.x.



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



Re: svn commit: r608329 - /tomcat/tc6.0.x/trunk/STATUS.txt

2008-01-03 Thread Filip Hanik - Dev Lists

http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/SerializablePrincipal.java?r1=607596&r2=607595&pathrev=607596



Mark Thomas wrote:

[EMAIL PROTECTED] wrote:
  

+  -1: fhanik - lets not do e.printStackTrace, handle the error and log it 
correctly,



Fair point. I'll fix that.

also, have the diff only change lines that are actually changed. makes it
easier to review

Which lines do you mean? The diff looks normal to me.

Mark


-
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 35959] - mod_jk not independant of UseCanonicalName

2008-01-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=35959





--- Additional Comments From [EMAIL PROTECTED]  2008-01-03 15:12 ---
UseCanonialName was simply unwanted by me. I didn't want users to be redirected
between domains just because they hit one of Apache's redirection.
That also causes losing of the session, doesn't it?

At the same time, i wouldn't want to clone a rather complicated VirtualHost
config in Tomcat. Whatever VirtualHost Apache chooses, i want to be sure, which
Host will be used on the Tomcat side. I'd like a clear association, instead of
two configs which i have to keep in sync.
Actually i ask myself, if any Apache-config can be represented by a 
Tomcat-config.


The easiest (and only) way for a clean association between Apache and Tomcat
Hosts was (and still is?), to "UseCanonialName on" on Apache side and
useIPVHosts="true" on Tomcat side.


-- 
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 43839] - I think the implement is difference with the document in function CoyoteAdapter.postParseRequest

2008-01-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=43839





--- Additional Comments From [EMAIL PROTECTED]  2008-01-03 18:50 ---
Created an attachment (id=21341)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=21341&action=view)
Patch for java.org.apache.catalina.connector.CoyoteAdapter

The change of parseSessionCookiesId has problem. If access a invalid web
application path it will throw NullPointerException. This is unexpect. The
normal is return 404. The follow is the steps.
1. Deploy a web application that is name 'CookiesBug' in webapps. 
2. Start tomcat.
3. Access /cookiesBug. Notice the characters are all in lower.
4. Will show NullPointerExecption at line 554 of class
java.org.apache.catalina.connector.CoyoteAdapter.

   The reason is the access URL is invalid and tomcat can't find the context
element for it. So it will throw NullPointerExecption. From
'http://tomcat.apache.org/tomcat-6.0-doc/config/context.html', I think if can't
find the context, tomcat should trate it as default value, the 'cookies' is
true. So we should get session tracing from cookies.

-- 
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 43839] - I think the implement is difference with the document in function CoyoteAdapter.postParseRequest

2008-01-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=43839





--- Additional Comments From [EMAIL PROTECTED]  2008-01-03 18:50 ---
The patch is for tomcat6.0.x

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