axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Assigned: (AXIS-376) TCPMon CRLF Bug in Resend (Content-Length calc)
Date Sun, 24 Apr 2005 12:28:25 GMT
     [ http://issues.apache.org/jira/browse/AXIS-376?page=all ]

Davanum Srinivas reassigned AXIS-376:
-------------------------------------

    Assign To: Venkat Reddy  (was: Tom Jordahl)

yet another tcpmon bug.

> TCPMon CRLF Bug in Resend (Content-Length calc)
> -----------------------------------------------
>
>          Key: AXIS-376
>          URL: http://issues.apache.org/jira/browse/AXIS-376
>      Project: Axis
>         Type: Bug
>   Components: Basic Architecture
>     Versions: 1.0-rc1
>  Environment: Operating System: Windows NT/2K
> Platform: PC
>     Reporter: Dan Kamins
>     Assignee: Venkat Reddy
>  Attachments: tcpmon-1.43-crlf-bugfix.diff
>
> There is a bug in the TCPMon having to do with the "RESEND" command.  Modifying 
> text and clicking resend on my computer (Windows) creates a 
> StringIndexOutOfBoundsException, and the message is not resent.  
> Workaround: manually removing the CRs after "Content-Length" and retyping them.
> Recommended Solution: The tcpmon.Listener.resend() method code to "Fix Content-
> Length HTTP headers" appears to make assumptions of the underlying string CRLF 
> representation in finding the end of the HTTP header and beginning of the 
> message (tcpmon.java:1450, Revision 1.42).  Presumably different Swing/Java 
> environments handle text CRLFs in a text input box differently.  This code 
> should be generalized to support this.
> Stack trace:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>         at java.lang.String.substring(String.java:1476)
>         at org.apache.axis.utils.tcpmon$Listener.resend(tcpmon.java:1450)
>         at org.apache.axis.utils.tcpmon$11.actionPerformed(tcpmon.java:1262)
>         ...
> Note, this occurs on Windows 2000, JDK 1.4, Axis 1.0-rc1.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message