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

database::create_collection() sends invalid request to server when "no_padding" option is set to true

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.3
    • None
    • Implementation
    • None

    Description

      When database::create_collection() is passed an options::create_collection object with the "no_padding" set to true, the driver adds the invalid option "{noPadding: true}" to the create command request. This value is ignored on older server versions, and rejected with an error on newer server versions (as of SERVER-25459).

      The correct option to send to the server when "no_padding" is requested is "{flags: 0x10}", per the create command reference.

      Attachments

        Activity

          People

            rassi J Rassi
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: