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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.10.1.1, 10.10.2.0
    • 10.10.2.0, 10.11.1.1
    • Network Server
    • None
    • 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

              knutanders Knut Anders Hatlen
              knutanders Knut Anders Hatlen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: