Menu

#27 Incorrect content-length calculation in XmlRpcServlet

open
nobody
None
5
2011-07-21
2011-07-21
Anonymous
No

When cacluating the content length for XMLRPC replies, the current implementation of XMLRPC servelet just serializes the response into a string and gets its length. This gives the number of characters in the string and not the number of encoded bytes. There is a difference between the two when dealing with characters with multi byte encodings (e.g. kanji characters when encoded in UTF-8), and this results in truncated responses from the XmlRpcServelet when sending responses with such characters.

Patch for fix attached

Discussion

  • Nobody/Anonymous

     
  • Nadir Kiyanclar

    Nadir Kiyanclar - 2011-07-22

    submitted by nadir@amazon.com (sorry, forgot to log in before submitting this comment)

     
  • Nadir Kiyanclar

    Nadir Kiyanclar - 2011-07-22

    before submitting this bug, not comment

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.