Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-4576

TestDefaultCertificateClient misuses chars param of random()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.0
    • test

    Description

      TestDefaultCertificateClient passes "UTF-8" to RandomStringUtils.random(int, String) with the intention to use UTF-8 encoding. It was added in HDDS-1087 to fix (intermittent?) failure in CI.

      However, the parameter is not for character encoding, rather:

           * @param chars  the String containing the set of characters to use,
           *  may be null, but must not be empty
      

      So this results in values like: "--8F8T8U8T...".

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: