Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1151

bsoncxx::builder::core::view_document() and bsoncxx::builder::core::view_array() should throw when builder top-level BSON datum type is incorrect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc0
    • Component/s: BSON
    • Labels:
    • Backwards Compatibility:
      Minor Change
    • Sprint:
      Perl/CXX 2016-12-02, Perl/CXX 2016-12-23

      Description

      bsoncxx::builder::core::extract_document() throws bsoncxx::exception when called on a builder where the top-level BSON datum type is an array. Similarly, bsoncxx::builder::core::extract_array() throws when called on a builder where the top-level BSON datum type is a document.

      bsoncxx::builder::core::view_document() and bsoncxx::builder::core::view_array() should similarly throw in these error cases.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: