[SERVER-3505] V1 index broken for BinData larger than 32 bytes Created: 29/Jul/11 Updated: 12/Jul/16 Resolved: 04/Aug/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | 1.9.1 |
| Fix Version/s: | 1.9.2 |
| Type: | Bug | Priority: | Blocker - P1 |
| Reporter: | Mathias Stearn | Assignee: | Dwight Merriman |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
Base64 of 33byte string created like this in python: > db.foo.drop() ) ) , {v:1}) ) ) { "nIndexesWas" : 2, "ok" : 1 }> db.foo.ensureIndex( {b:1}, {v:0}) ) The problem is in KeyV1Owned constructor. We need to check if len <= 32 before this line https://github.com/mongodb/mongo/blob/master/db/key.cpp#L267 |
| Comments |
| Comment by auto [ 04/Aug/11 ] |
|
Author: {u'login': u'dwight', u'name': u'dwight', u'email': u'dwight@10gen.com'}Message: |