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

FLE EncryptSchemaKeyId parser should provide better error message

    XMLWordPrintableJSON

Details

    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

            alya.berciu@mongodb.com Alya Berciu
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: