[SERVER-20566] Add unit tests for malformed message headers sent to NIA Created: 22/Sep/15  Updated: 15/Oct/15  Resolved: 07/Oct/15

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: 3.1.9
Fix Version/s: 3.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Samantha Ritter (Inactive) Assignee: Samantha Ritter (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-20628 AsyncMockStream doesn't return an err... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platform A (10/09/15)
Participants:

 Description   

Test that NetworkInterfaceASIO rejects the following malformed message headers:

  • length 0
  • length -1
  • length > actual message length
  • length < actual message length
  • invalid opcode
  • valid mismatched opcode
  • mismatched responseTo field
  • length larger than max BSON size
  • length > 0 and smaller than min message size


 Comments   
Comment by Githook User [ 07/Oct/15 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: SERVER-20566 Unit tests for malformed messages in NetworkInterfaceASIO
Branch: master
https://github.com/mongodb/mongo/commit/53914a86fabc4009379c678158c00ae76d127b7a

Comment by Githook User [ 07/Oct/15 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: SERVER-20566 Existing NetworkInterfaceASIO unit tests use new test utilities
Branch: master
https://github.com/mongodb/mongo/commit/f5c63f865afc272069ac9205e3fcadba6043c6d1

Generated at Thu Feb 08 03:54:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.