[CDRIVER-790] Intermittent auth failures on Windows Created: 10/Aug/15  Updated: 11/Sep/19  Resolved: 01/Oct/15

Status: Closed
Project: C Driver
Component/s: auth, libmongoc, tests
Affects Version/s: 1.2-beta0
Fix Version/s: 1.2-rc0

Type: Task Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Can't tell yet if this is a test bug or a driver bug. Tests occasionally fail with auth errors on win64 – even after previous auth tests in the same run succeeded:

https://evergreen.mongodb.com/task/mongo_c_driver_windows_64_vs2013_integration_test_2.6_2d3e0bcc47c4a77d43e9fa38a822c2a019f5fe63_15_08_10_18_29_35



 Comments   
Comment by Githook User [ 11/Jan/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-790 type mismatch in auth tests

In MS Visual C a bool is a byte. If the char pointers "username" and
"password" happen to be aligned at 256 bytes, then (bool) username is
false and the test suite thinks it doesn't need to authenticate, leading
to intermittent auth failures in tests.
Branch: 1.3.0-dev
https://github.com/mongodb/mongo-c-driver/commit/7c5dbed32ef4ca2fe9960193e77cda31a9faa239

Comment by Githook User [ 26/Oct/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-790 type mismatch in auth tests

In MS Visual C a bool is a byte. If the char pointers "username" and
"password" happen to be aligned at 256 bytes, then (bool) username is
false and the test suite thinks it doesn't need to authenticate, leading
to intermittent auth failures in tests.
Branch: debian
https://github.com/mongodb/mongo-c-driver/commit/7c5dbed32ef4ca2fe9960193e77cda31a9faa239

Comment by A. Jesse Jiryu Davis [ 01/Oct/15 ]

Haven't observed after recent network-layer and error reporting fixes? I hypothesize this was never an auth error but misreported network errors, which in turn were due to either bugs in the network layer or Mongo Orchestration failures. I'm hoping to resolve this "cannot reproduce" for rc0.

Comment by Githook User [ 22/Sep/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-790 better auth errors from tests
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/238020f9ea45f1b648b2392d7239f94065555fec

Comment by Hannes Magnusson [ 22/Sep/15 ]

This is still happening

https://evergreen.mongodb.com/task/mongo_c_driver_windows_64_vs2013_integration_test_3.0_496ca197160966e668d7804ab0dfbeece1e1ffcf_15_09_21_23_05_48/0

Comment by Githook User [ 17/Sep/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-790 type mismatch in auth tests

In MS Visual C a bool is a byte. If the char pointers "username" and
"password" happen to be aligned at 256 bytes, then (bool) username is
false and the test suite thinks it doesn't need to authenticate, leading
to intermittent auth failures in tests.
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/7c5dbed32ef4ca2fe9960193e77cda31a9faa239

Generated at Wed Feb 07 21:10:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.