Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-488

Context may not enter MONGOCRYPT_CTX_ERROR on KMS provider validation errors

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.2
    • Affects Version/s: None
    • Component/s: None
    • None

      Scope

      • Update error returns in mongocrypt_ctx_provide_kms_providers to set the ctx->state to MONGOCRYPT_CTX_ERROR

      Background & Motivation
      An error in a context function is expected to set the state of the context as MONGOCRYPT_CTX_ERROR. Some drivers require this behavior for correctness. For example, the Node.JS bindings do not always check the return values of some mongocrypt_ctx_* functions, and may rely on the context state to return an error.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: