tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37829] - Log says always that a error ocurred, but the cgi script is correct
Date Mon, 12 Dec 2005 12:44:59 GMT
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=37829>.
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=37829


acorreia@dbait.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|5.5.9                       |5.0.30




------- Additional Comments From acorreia@dbait.de  2005-12-12 13:44 -------
Hi Mark,

I found what caused this problem in class "CGIServlet", method "sendToLog". 

Until the version 5.0.30, the variable linecount was wrongly incremented after 
the loop and not inside it. 

That means it has always the value 1, even though there was no errors or many 
lines of message

            try {
                while ((line = rdr.readLine()) != null) {
                    log("runCGI (stderr):" +  line) ;
                }
                lineCount++ ;
            } catch (IOException e) {


I checked now the source code in the beta version 5.5.12 and 14, and this 
problem was solved. As you tested with the last version, the bug was no more 
there:

            try {
                while ((line = rdr.readLine()) != null) {
                    log("runCGI (stderr):" +  line) ;
                    lineCount++ ;
                }
            } catch (IOException e) {


As I didn't find any bug relating this problem, I created this bug before 
testing with the latest version. 

Thank for the attention, sorry if it took your time ;P

Armindo Correia


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


Mime
View raw message