[infinispan-issues] [JBoss JIRA] Resolved: (ISPN-880) Hash impls use String.getBytes(), may get non UTF8 bytes
Manik Surtani (JIRA)
jira-events at lists.jboss.org
Tue Jan 18 11:07:49 EST 2011
[ https://issues.jboss.org/browse/ISPN-880?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manik Surtani resolved ISPN-880.
--------------------------------
Resolution: Done
> Hash impls use String.getBytes(), may get non UTF8 bytes
> --------------------------------------------------------
>
> Key: ISPN-880
> URL: https://issues.jboss.org/browse/ISPN-880
> Project: Infinispan
> Issue Type: Bug
> Components: Distributed Cache
> Affects Versions: 4.2.0.Final
> Reporter: Patrick McFarland
> Assignee: Manik Surtani
> Fix For: 4.2.1.Final
>
>
> According to Sun's Java docs, String.getBytes() will return bytes in the platform's native encoding, which may not be UTF-8. Cross platform (or same platforms configured differently) may end up with problems in the same cluster.
> The fix seems to be replace all String.getBytes() uses with String.getBytes(Charset.forName("UTF-8")) to always force UTF-8 conversion.
> This bug may also apply to other unrelated places in Infinispan, I haven't checked.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list