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=32363>. 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=32363 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | ------- Additional Comments From [EMAIL PROTECTED] 2004-11-24 13:23 ------- The bug lies in the fact that Commons::Net adds an extraneous 0 byte after the MODE string. So it is interpreted by the server as an empty option. Culprit: TFTPRequestPacket.java, line 194: datagram.setLength(fileLength + modeLength + 4); Where the 4 is 2 bytes for the type field and 2 times 1 terminating null byte. But, modeLength already accounted for this null byte. Then the packet is 1 byte too long, and this byte is interpreted as an empty TFTPv2 option. Code should be: datagram.setLength(fileLength + modeLength + 3); Cheers, Fran�ois -- 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]
