Throw exceptions for unsupported BSON types

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Minor - P4
    • 1.3.0-beta1, 1.3.0
    • Affects Version/s: 0.6.3
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Based on the driver's bson_visitor_t struct, we don't define callbacks for the undefined, DB pointer, and symbol types. We should double check that decoding BSON containing these types throws an exception.

      Note: the 1.x driver interprets symbols as strings and attempts to convert DB pointers to a DBRef document. I'd say there's no reason to maintain the old DB pointer conversion logic, especially because it can silently modify a document when round-tripping through the driver. As for symbol/string handling, perhaps we should check if we have any obligation to support them due to DRIVERS-196.

            Assignee:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: