[JAVA-1864] Driver should throw BsonSerializationException when corrupt BSON is encountered Created: 15/Jun/15 Updated: 07/Oct/15 Resolved: 22/Jun/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | BSON |
| Affects Version/s: | 3.0.2 |
| Fix Version/s: | 3.1.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
When the driver is presented with corrupt BSON to encode, it should throw a BsonSerializationException. It should not successfully parse the BSON, and it should not throw other runtime exceptions. Examples where this is not currently the case include:
|
| Comments |
| Comment by Jeffrey Yemin [ 07/Oct/15 ] |
|
Released in 3.1.0 |
| Comment by Githook User [ 22/Jun/15 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Added JSON-powered BSON encoding and decoding tests of well-formed and corrupted BSON |
| Comment by Githook User [ 22/Jun/15 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Throwing proper exception in BsonBinaryWriter.pipe when document size is too small |
| Comment by Githook User [ 22/Jun/15 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Added check that a decoded boolean value has either the value 0 or the value 1. |
| Comment by Githook User [ 22/Jun/15 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Ensured that the decoded BSON type is valid. |
| Comment by Githook User [ 22/Jun/15 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: When decoding corrupted BSON, the driver should throw BsonSerializationException rather than other runtime exceptions. |