Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6457

NetworkServerControl API breaks when username or password contains non-ascii characters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10.1.1, 10.10.2.0
    • Fix Version/s: 10.10.2.0, 10.11.1.1
    • Component/s: Network Server
    • Labels:
      None
    • Urgency:
      Normal

      Description

      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.

        Attachments

        1. d6457-1a.diff
          7 kB
          Knut Anders Hatlen

          Issue Links

            Activity

              People

              • Assignee:
                knutanders Knut Anders Hatlen
                Reporter:
                knutanders Knut Anders Hatlen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: