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

FLE EncryptSchemaKeyId parser should provide better error message

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Usability
    • Labels:

      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

          Issue Links

            Activity

              People

              Assignee:
              backlog-query-optimization Backlog - Query Optimization
              Reporter:
              anna.henningsen Anna Henningsen
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: