[ https://issues.apache.org/jira/browse/DERBY-6457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13878517#comment-13878517 ]
ASF subversion and git services commented on DERBY-6457: -------------------------------------------------------- Commit 1560311 from [~knutanders] in branch 'code/trunk' [ https://svn.apache.org/r1560311 ] DERBY-6457: NetworkServerControl API breaks when username or password contains non-ascii characters Make NetworkServerControlImpl.writeLDString() write the length in bytes instead of characters to match how it is read by NetworkServerControlImpl.readLDString(). > NetworkServerControl API breaks when username or password contains non-ascii > characters > --------------------------------------------------------------------------------------- > > Key: DERBY-6457 > URL: https://issues.apache.org/jira/browse/DERBY-6457 > Project: Derby > Issue Type: Bug > Components: Network Server > Affects Versions: 10.10.1.1 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Fix For: 10.11.0.0 > > Attachments: d6457-1a.diff > > > If you pass a non-ascii username/password combination to a > NetworkServerControl API command, such as > java -jar derbynet.jar shutdown -user Bjørn -password Dæhlie > it will hang forever. > The reason is that NetworkServerControlImpl.writeLDString() writes the length > of the string in characters, whereas NetworkServerControlImpl.readLDString() > expects the length to be in number of bytes. -- This message was sent by Atlassian JIRA (v6.1.5#6160)