[CXX-1072] database::create_collection() sends invalid request to server when "no_padding" option is set to true Created: 06/Oct/16 Updated: 19/Oct/16 Resolved: 07/Oct/16 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Implementation |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | J Rassi | Assignee: | J Rassi |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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 The correct option to send to the server when "no_padding" is requested is "{flags: 0x10}", per the create command reference. |
| Comments |
| Comment by Githook User [ 07/Oct/16 ] |
|
Author: {u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}Message: Previously, options::create_collection::_no_padding was always |
| Comment by Githook User [ 07/Oct/16 ] |
|
Author: {u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}Message: Previously, options::create_collection::_no_padding was always |
| Comment by J Rassi [ 06/Oct/16 ] |