<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:41:28 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-2047] attempted to read past the end of the stream</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2047</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;i am getting this issue&lt;br/&gt;
&quot;attempted to read past the end of the stream&quot;&lt;/p&gt;

&lt;p&gt;the exception is coming here &lt;br/&gt;
 FileStream source = new FileStream(file, FileMode.Open);&lt;/p&gt;

&lt;p&gt; var id = bucket.UploadFromStream(path1, source, options); ---&amp;gt; getting exception here&lt;/p&gt;



&lt;p&gt;stack trace&lt;br/&gt;
   at MongoDB.Driver.Core.Connections.BinaryConnection.ReceiveBuffer()&lt;br/&gt;
   at MongoDB.Driver.Core.Connections.BinaryConnection.ReceiveBuffer(Int32 responseTo, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.Core.Connections.BinaryConnection.ReceiveMessage(Int32 responseTo, IMessageEncoderSelector encoderSelector, MessageEncoderSettings messageEncoderSettings, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.Core.ConnectionPools.ExclusiveConnectionPool.AcquiredConnection.ReceiveMessage(Int32 responseTo, IMessageEncoderSelector encoderSelector, MessageEncoderSettings messageEncoderSettings, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.Core.WireProtocol.CommandWireProtocol`1.Execute(IConnection connection, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.Core.Servers.Server.ServerChannel.ExecuteProtocol&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(IWireProtocol`1 protocol, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.Core.Servers.Server.ServerChannel.Command&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(DatabaseNamespace databaseNamespace, BsonDocument command, IElementNameValidator commandValidator, Func`1 responseHandling, Boolean slaveOk, IBsonSerializer`1 resultSerializer, MessageEncoderSettings messageEncoderSettings, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.Core.Operations.BulkUnmixedWriteOperationBase.ExecuteProtocol(IChannelHandle channel, BsonDocument command, Func`1 responseHandling, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.Core.Operations.BulkUnmixedWriteOperationBase.ExecuteBatch(IChannelHandle channel, BatchableSource`1 requestSource, Int32 originalIndex, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.Core.Operations.BulkUnmixedWriteOperationBase.ExecuteBatches(IChannelHandle channel, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.Core.Operations.BulkUnmixedWriteOperationBase.Execute(IChannelHandle channel, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.Core.Operations.BulkMixedWriteOperation.ExecuteBatch(IChannelHandle channel, Run run, Boolean isLast, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.Core.Operations.BulkMixedWriteOperation.Execute(IWriteBinding binding, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.OperationExecutor.ExecuteWriteOperation&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(IWriteBinding binding, IWriteOperation`1 operation, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.MongoCollectionImpl`1.ExecuteWriteOperation&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(IWriteOperation`1 operation, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.MongoCollectionImpl`1.BulkWrite(IEnumerable`1 requests, BulkWriteOptions options, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.MongoCollectionBase`1.InsertOne(TDocument document, InsertOneOptions options, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.GridFS.GridFSForwardOnlyUploadStream`1.WriteFilesCollectionDocument(CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.GridFS.GridFSForwardOnlyUploadStream`1.Close(CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.GridFS.GridFSBucket`1.UploadFromStream(TFileId id, String filename, Stream source, GridFSUploadOptions options, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.GridFS.GridFSBucket.UploadFromStream(String filename, Stream source, GridFSUploadOptions options, CancellationToken cancellationToken)&lt;br/&gt;
   at AppsWorld.CompanyRegistration.Application.CompanyRegistrationApplicationService.UploadMongoDBFile(DocRepositoryModel lstdocrepository, Guid referenceId, Int64 companyId) in D:\m\m.cs:line 313&lt;/p&gt;



&lt;p&gt;any help would be appreciated &lt;br/&gt;
Tahnk you&lt;/p&gt;</description>
                <environment>Windows Server 2016&lt;br/&gt;
</environment>
        <key id="434590">CSHARP-2047</key>
            <summary>attempted to read past the end of the stream</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="khadar439">Khadar Basha Shaik</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Sep 2017 10:45:03 +0000</created>
                <updated>Sat, 28 Oct 2017 03:30:46 +0000</updated>
                            <resolved>Sat, 28 Oct 2017 03:30:46 +0000</resolved>
                                    <version>2.4.4</version>
                                                    <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1711852" author="jeff.yemin" created="Sat, 28 Oct 2017 03:30:46 +0000"  >&lt;p&gt;As we haven&apos;t heard back from you with more information, I&apos;m going to close this issue.&lt;/p&gt;

&lt;p&gt;Please feel free to comment when you have more information and we&apos;ll be glad to re-open.&lt;/p&gt;</comment>
                            <comment id="1684703" author="rstam" created="Thu, 28 Sep 2017 21:15:37 +0000"  >&lt;p&gt;Are you able to reproduce this consistently? If so let us know how.&lt;/p&gt;

&lt;p&gt;Can you see if there are any unusual messages in the server log at the exact time that this exception was thrown?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht7tb3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>