[JAVA-865] SASL auth payload is Binary (type 0/3 as byte[]) or a String Created: 06/Jul/13 Updated: 24/Jan/14 Resolved: 24/Jan/14 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Authentication |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Scott Hernandez (Inactive) | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Description |
|
This line needs to be adjusted to support the correct types: See c++ impl: https://github.com/mongodb/mongo/blob/master/src/mongo/client/sasl_client_authenticate.cpp#L56 |
| Comments |
| Comment by Jeffrey Yemin [ 08/Jul/13 ] | |||||||||||
|
This could happen if MongoClientOptions.dbDecoderFactory property is set to a factory that decodes binary subtype 0 differently than the default encoder. | |||||||||||
| Comment by Jeffrey Yemin [ 06/Jul/13 ] | |||||||||||
|
What server version? I've tested with 2.4 and it has worked. | |||||||||||
| Comment by Scott Hernandez (Inactive) [ 06/Jul/13 ] | |||||||||||
|
After looking a bit more it seems like this should be working since the bson callback should be converting both 0/3 subtypes to byte[]. | |||||||||||
| Comment by Scott Hernandez (Inactive) [ 06/Jul/13 ] | |||||||||||
|
Yes.
| |||||||||||
| Comment by Jeffrey Yemin [ 06/Jul/13 ] | |||||||||||
|
Are you getting an exception? |