[ 
https://issues.apache.org/jira/browse/DERBY-901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel John Debrunner closed DERBY-901.
---------------------------------------

    Assignee:     (was: Sunitha Kambhampati)

confirmed no use of String(byte[]) in drda code.

> Remove use of String(byte[]) constructors in network server leading to 
> non-portable behaviour
> ---------------------------------------------------------------------------------------------
>
>                 Key: DERBY-901
>                 URL: https://issues.apache.org/jira/browse/DERBY-901
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Server
>            Reporter: Daniel John Debrunner
>             Fix For: 10.1.3.1, 10.2.1.6
>
>         Attachments: Derby901.p1.diff.txt, Derby901.p1.stat.txt, 
> derby901.p2.diff.txt, derby901.p2.stat.txt, for_10.1_derby901.p1.diff.txt, 
> for_10.1_derby901.p1.stat.txt, for_10.1_derby901.p2.diff.txt, 
> for_10.1_derby901.p2.stat.txt, TestEnc.java
>
>
> These constructors use the Java default platform encoding to convert the 
> bytes to a String, this typically leads to bugs on platforms with different 
> encodings.
> Replace with code using fixed conversion, or alternative mechanisms. 
> If the call is required its use should be commented as to why it is required.
> org.apache.derby.impl.drda.DRDAConnThread
> I generated this list using the Java search in eclipse for references to the 
> constructors
> String(byte[])
> String(byte[],int,int) - no occurences found in java/drda

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to