[CDRIVER-509] GridFS crashes when creating empty file Created: 23/Jan/15 Updated: 23/Oct/15 Resolved: 17/Sep/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | GridFS |
| Affects Version/s: | None |
| Fix Version/s: | 1.3.0-beta0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Samantha Ritter (Inactive) | Assignee: | Kyle Suarez |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
(ported from github) When creating an empty file from a stream, GridFS crashes. When create an empty file by calling mongoc_gridfs_create_file_from_stream() which will relocate the file pointer to the beginning of the created file after write all bytes(no byte written for empty file) into mongodb. Please notice my comments in the following code snippet:
How to fix it:
|
| Comments |
| Comment by Githook User [ 22/Sep/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@emptysquare.net'}Message: Merge pull request #272 from ksuarz/feature/test-empty
|
| Comment by Githook User [ 22/Sep/15 ] |
|
Author: {u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'ksuarz@gmail.com'}Message: |
| Comment by Githook User [ 22/Sep/15 ] |
|
Author: {u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'ksuarz@gmail.com'}Message: |
| Comment by Githook User [ 22/Sep/15 ] |
|
Author: {u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'ksuarz@gmail.com'}Message: |
| Comment by Kyle Suarez [ 17/Sep/15 ] |
|
The commit that fixes this is here on GitHub. |
| Comment by Kyle Suarez [ 17/Sep/15 ] |
|
|