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

FLE EncryptSchemaKeyId parser should provide better error message

    • Fully Compatible

      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@mongodb.com Alya Berciu
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: