FLE EncryptSchemaKeyId parser should provide better error message

XMLWordPrintableJSON

    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The error message in src/mongo/db/matcher/schema/encrypt_schema_types.cpp#L44-L46 is very vague. In particular, this is confusing because (at least with the Node.js libmongocrypt bindings, but likely also the others) the error shows up when actually trying to insert documents using this schema, rather than when the schema is first specified. This makes it seem like something is wrong with the inserted document, rather than the schema itself.

      I will open a pull request with a suggestion.

              Assignee:
              Alya Berciu
              Reporter:
              Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: