Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-35781

ssl on macOS 10.10 [MongoDB (master) @ 2a604021] (ssl_client_certificate_warning_suppression.js) fix

    XMLWordPrintableJSON

Details

    • Minor Change
    • OS X
    • v4.0
    • Hide

      Build on OSX, run resmoke with the jstest ssl_client_certificate_warning.js, and observe that a log message is printed, but it's not the one the test is looking for.

      Show
      Build on OSX, run resmoke with the jstest ssl_client_certificate_warning.js, and observe that a log message is printed, but it's not the one the test is looking for.
    • Platforms 2018-07-02
    • 46

    Description

      As described in BF-9546, there is an automatic build failure when running the ssl_client_certificate_warning.js test. This is a result of our OSX SSL manager giving different log messages than the other SSL managers.

       

      Because of this behavior, the test case is fooled into thinking a log message is not printed, when it actually is, because it is not looking for the right log message. This will be fixed by changing the OSX log message to be consistent with the others.

       

      The current message, used in ssl_manager_apple.cpp is:

      return badCert(str::stream() << "Unable to retreive SSL trust from peer: "
                                   << stringFromOSStatus(status)

      This will be changed to:

      return badCert(str::stream() << "no SSL certificate provided by peer: "
                                   << stringFromOSStatus(status)
      

      which will make it consistent with the other SSL managers

      Attachments

        Activity

          People

            adam.cooper@mongodb.com Adam Cooper (Inactive)
            adam.cooper@mongodb.com Adam Cooper (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: