You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/02/08 01:46:59 UTC

DO NOT REPLY [Bug 41563] New: - Processing result of mod_jk for Apache2.0.x is unexpected, differs from the one for Apache1.3.x.

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=41563>.
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=41563

           Summary: Processing result of mod_jk for Apache2.0.x is
                    unexpected, differs from the one for Apache1.3.x.
           Product: Tomcat 5
           Version: 5.0.28
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:JK
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: jstaka@gmail.com


Hi,
I'm using Apache2.0.59, mod_jk1.2.20 and Tomcat5.0.28.
The resources are located in the area where is protected by Tomcat's
BASIC authentication.
When I send a request via HEAD method without account nor password,
the values of response headers are not recorded into the Apache2's
access log file.
In the following case of log related parameters for Apache2:

 LogFormat "\"%{WWW-Authenticate}o\"" combined
 CustomLog /var/log/httpd/access_log combined

Despite the response includes a WWW-Authenticate header that are not
empty values,
the log is set as "-" value.

This phenomenon does not happen at the case of neither Apache1.3.37
nor the combination of Apache2.2.4 and mod_proxy_ajp.

I guess that the return value from jk_handler's function causes this
unexpected result.
Since the generation of Apache2,
the value of 'sent_bodyct' has not been set as '1' when the
'header_only' value is '1'
&#65288;see httpd-2.0.59/modules/http/http_protocol.c L1765&#65289;.
As a result, the condition at
tomcat-connectors-1.2.20-src/native/apache-2.0/mod_jk.c L2118
      /* If tomcat returned no body and the status is not OK,
         let apache handle the error code */
      if (!r->sent_bodyct && r->status >= HTTP_BAD_REQUEST) {
          jk_log(xconf->log, JK_LOG_INFO, "No body with status=%d"
                 " for worker=%s",
                 r->status, worker_name);
          JK_TRACE_EXIT(xconf->log);
          return r->status;
      -- snip --
      return OK;      /* NOT r->status, even if it has changed. */
is true, and jk_handler returns the "NOT OK" value.
Finnaly, the contents of headers table for Apache2 are all cleared.

I suggest to mend the 'if'-condition clause as below:
      if (!r->header_only && !r->sent_bodyct && r->status >=
HTTP_BAD_REQUEST) {

What do you think about this, bug or not?
I would like to resolve this probelm.

Regards,

Taka J.S.

-- 
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 41563] - Processing result of mod_jk for Apache2.0.x is unexpected, differs from the one for Apache1.3.x.

Posted by bu...@apache.org.
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=41563>.
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=41563


rainer.jung@kippdata.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED




------- Additional Comments From rainer.jung@kippdata.de  2008-01-01 16:32 -------
Move a couple of fixed JK issues from resolved to closed.

-- 
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 41563] - Processing result of mod_jk for Apache2.0.x is unexpected, differs from the one for Apache1.3.x.

Posted by bu...@apache.org.
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=41563>.
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=41563


rainer.jung@kippdata.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From rainer.jung@kippdata.de  2007-08-06 08:21 -------
Seems to work for 1.2.25-dev.

-- 
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 41563] - Processing result of mod_jk for Apache2.0.x is unexpected, differs from the one for Apache1.3.x.

Posted by bu...@apache.org.
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=41563>.
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=41563





------- Additional Comments From rbchung@gmail.com  2007-02-23 16:23 -------
Hi, 
We also have Apache2.0.59, and we just upgraded mod_jk from 1.2.15 to 1.2.20.
After upgrade, the web servers crashed few times causing major production
issues, so we had to roll back mod_jk. We still don't know exactly why, but we
were also seeing "-" value as well assuming Taka is referring to the same.

[22/Feb/2007:20:37:58 -0800] "HEAD /index.html HTTP/1.0" 200 - "-" "Mozilla/4.06
[en] (WinNT; I)"
[22/Feb/2007:20:38:03 -0800] "HEAD /index.html HTTP/1.0" 200 - "-" "Mozilla/4.06
[en] (WinNT; I)"
[22/Feb/2007:20:38:08 -0800] "HEAD /index.html HTTP/1.0" 200 - "-" "Mozilla/4.06
[en] (WinNT; I)"
[22/Feb/2007:20:38:13 -0800] "HEAD /index.html HTTP/1.0" 200 - "-" "Mozilla/4.06
[en] (WinNT; I)"

Is this known issue? We would like to have features on 1.2.20. What's
recommendation here?

Thanks.
-rc


-- 
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org