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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.3
    • Affects Version/s: None
    • Component/s: Implementation
    • None

      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.

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

              Created:
              Updated:
              Resolved: