Fix unicode read on BOSH

Description

In the current read scheme for Openfire, it is possible that due
to variable width encoding that we sometimes only create a
string with a partial character.

This breaks the message text and causes encoding issues when read.

This change modifies the way the characters are
read to use an bytearrayoutputstream and
only do the string conversion once.

Since we only do the string creation once after the full
buffer is read, we no longer have encoding
issues with broken unicode characters.

https://github.com/igniterealtime/Openfire/pull/535

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created February 9, 2016 at 7:34 PM
Updated March 17, 2016 at 7:08 PM
Resolved March 17, 2016 at 7:08 PM