Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-1752

JSON event handlers send truncated response when it contains accented chars

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Trunk
    • Release Branch 4.0, Trunk
    • framework
    • None

    Description

      The JSON event handlers do not set correct content length when the response contains special characters (chars that translate to more then one byte in unicode),
      This is because the content length of the HTTP response is set to the number of chars and not the number of bytes to be transmitted.
      See attached patch

      Attachments

        1. contentLength.patch
          3 kB
          Nicolas Mervaillie

        Activity

          People

            jleroux Jacques Le Roux
            nmervaillie Nicolas Mervaillie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: