[CXX-1317] bucket::upload_from_stream() and bucket::upload_from_stream_with_id() should abort upload on failure Created: 14/Apr/17  Updated: 05/Jul/17  Resolved: 20/Apr/17

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: J Rassi Assignee: Samuel Rossi (Inactive)
Resolution: Done Votes: 0
Labels: gridfs
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CXX-1322 gridfs::bucket::upload_from_stream an... Closed

 Description   

According to the File Upload section of the GridFS spec, the bucket::upload_from_stream() and bucket::upload_from_stream_with_id() methods should abort the upload on failure (excerpted text: "When using upload_from_stream, the upload will be aborted if the source stream raises an error").



 Comments   
Comment by Githook User [ 20/Apr/17 ]

Author:

{u'username': u'saghm', u'name': u'Saghm Rossi', u'email': u'saghmrossi@gmail.com'}

Message: CXX-1317 bucket::upload_from_stream() and bucket::upload_from_stream_with_id() should abort upload on failure
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/96958d485b409f9dd1552ef57376ce8b137b335c

Comment by David Golden [ 18/Apr/17 ]

Waiting on CXX-1322

Comment by Samuel Rossi (Inactive) [ 17/Apr/17 ]

Blocking this until we're sure that we've fixed incorrect behavior regarding throw conditions of istream::read

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