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

Throw exceptions for unsupported BSON types

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 0.6.3
    • Fix Version/s: 1.3.0-beta1, 1.3.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: