[CSHARP-2373] GridFSForwardOnlyUploadStream not closing properly on .NET Standard 2+ when cast to Stream before calling Close Created: 01/Sep/18 Updated: 28/Oct/23 Resolved: 31/Oct/18 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | GridFS |
| Affects Version/s: | 2.7.0 |
| Fix Version/s: | 2.7.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Peter Huang | Assignee: | Robert Stam |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
.NET Standard 2+ |
||
| Description |
|
Consider the following code: var dst = bucket.OpenUploadStream(srcFile.Name); Looks like it's missing Close() override for NETSTANDARD2_0 that'll close the wrapped stream? GridFSUploadStreamCompat.cs Line 80 This leads to some pretty difficult to diagnose issues when the stream is used in any number of generic libraries that works against the Stream interface.
|
| Comments |
| Comment by Githook User [ 06/Nov/18 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |
| Comment by Githook User [ 31/Oct/18 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |