[CSHARP-40] Using a period in the database name causes safe mode to crash. Created: 11/May/10 Updated: 19/Oct/16 Resolved: 11/Nov/10 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | SAMUS |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Barry Dahlberg | Assignee: | Sam Corder |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
.Net Framework 4 |
||
| Description |
|
Using a database name with a period in it works for most operations but causes safe mode to throw an error. If these are not valid database names reject them at connection time so the error is obvious. E.g. this code fails: mongo["The.DB"]["TheCollection"].Insert(new Document }, true); Either turning off safe more or removing the period from the database name cause the program to work correctly. MongoDB logs this to the console: connection accepted from 127.0.0.1:46634 #87 .Net dumps the following: Unhandled Exception: MongoDB.Driver.MongoCommException: Could not read data, communication failure ---> System.IO.EndOfStreamException: Unable to read beyond the end of the stream. |
| Comments |
| Comment by Steve Wagner [ 11/Nov/10 ] |
|
Please check if this still exists in our current master and report back here if yes https://github.com/mongodb-csharp/mongodb-csharp/issues. |
| Comment by Steve Wagner [ 12/May/10 ] |
|
Can you check if it works in for the current development version? http://github.com/lanwin/mongodb-csharp/tree/typedcollections |