Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-302

Throw exceptions for unsupported BSON types

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.3.0-beta1, 1.3.0
    • Affects Version/s: 0.6.3
    • Component/s: None
    • Labels:
      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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: