Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1981

Unexpected SSL certificate verification in test-standalone-ssl on Debian 9.2

    • Type: Icon: Build Failure Build Failure
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • None

      test-standalone-ssl is failing on the following variants:

      • All: MongoDB 4.4/PHP 7.1 — Debian 9.2
      • All: MongoDB 4.4/PHP 7.3 — Debian 9.2
      • MongoDB 4.2/PHP 7.3 — Debian 9.2
      • MongoDB 5.0/PHP 7.3 — Debian 9.2

      Two tests fail because they expect an SSL certificate verification error, and none occurs. The tests are unexpectedly able to ping the standalone successfully.

      • tests/connect/standalone-ssl-verify_cert-error-001.phpt
      • tests/connect/standalone-ssl-verify_cert-error-002.phpt

      See task log:

       [2021/09/24 18:11:24.154] ========DIFF========
       [2021/09/24 18:11:24.154] 004+ object(stdClass)#7 (1) {
       [2021/09/24 18:11:24.154] 005+   ["ok"]=>
       [2021/09/24 18:11:24.154] 006+   float(1)
       [2021/09/24 18:11:24.154] 007+ }
       [2021/09/24 18:11:24.154] 008+ FAILED: Expected MongoDB\Driver\Exception\ConnectionTimeoutException, but no exception thrown!
       [2021/09/24 18:11:24.154] 009+
       [2021/09/24 18:11:24.154] 004- OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException thrown from executeCommand
       [2021/09/24 18:11:24.154] 005- No suitable servers found (`serverSelectionTryOnce` set): [%s calling %s on '%s:%d']
       [2021/09/24 18:11:24.154] ========DONE========
       [2021/09/24 18:11:24.154] FAIL Connect to MongoDB with SSL and cert verification error [tests/connect/standalone-ssl-verify_cert-error-001.phpt]
       [2021/09/24 18:11:24.196] ========DIFF========
       [2021/09/24 18:11:24.196] 006+ object(stdClass)#7 (1) {
       [2021/09/24 18:11:24.196] 007+   ["ok"]=>
       [2021/09/24 18:11:24.196] 008+   float(1)
       [2021/09/24 18:11:24.196] 009+ }
       [2021/09/24 18:11:24.196] 010+ FAILED: Expected MongoDB\Driver\Exception\ConnectionTimeoutException, but no exception thrown!
       [2021/09/24 18:11:24.196] 011+
       [2021/09/24 18:11:24.196] 006- OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException thrown from executeCommand
       [2021/09/24 18:11:24.196] 007- No suitable servers found (`serverSelectionTryOnce` set): [%s calling %s on '%s:%d']
       [2021/09/24 18:11:24.196] ========DONE========
       [2021/09/24 18:11:24.197] FAIL Connect to MongoDB with SSL and cert verification error (context options) [tests/connect/standalone-ssl-verify_cert-error-002.phpt]
      

      Related patch build: https://evergreen.mongodb.com/version/mongo_php_driver_ce6b11d475fb1ff19afed29bcf5b89c200f82440

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: