[JAVA-1813] GridFSInputFile.save() error when using createFile(File f) Created: 12/May/15 Updated: 01/Apr/16 Resolved: 13/May/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | GridFS |
| Affects Version/s: | 3.0.0 |
| Fix Version/s: | 3.0.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Augusto Decoud | Assignee: | Ross Lawley |
| Resolution: | Done | Votes: | 0 |
| Labels: | regression | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Tested in Windows 7, Java SE 1.8 but appñlies for all |
||
| Backwards Compatibility: | Fully Compatible |
| Description |
|
Problem introduced in driver version 3.0.1. Caused by: java.io.IOException: Stream Closed Solution:
for this one:
as in older versions. Problem dissapears. I do not know the reason for the changes in the 3.0.1 version. I did some tests after the changes and it seems it do not affect the rest of the class. This is my first post. I'm new to MongoDb, so excuse me if I did something wrong in this post. Thanks, |
| Comments |
| Comment by Githook User [ 13/May/15 ] | ||
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Fixed testCreateFileWithFile to work with Java 1.6
| ||
| Comment by Githook User [ 13/May/15 ] | ||
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Fixed testCreateFileWithFile to work with Java 1.6
| ||
| Comment by Ross Lawley [ 13/May/15 ] | ||
|
Thanks again for the bug report adecoud This has been fixed in 3.0.x and on master and will be released in 3.0.2 and later in 3.1 | ||
| Comment by Githook User [ 13/May/15 ] | ||
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Fixed GridFS.createFile bug The underlying call handles the closure of the stream correctly
| ||
| Comment by Githook User [ 13/May/15 ] | ||
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Fixed GridFS.createFile bug The underlying call handles the closure of the stream correctly
| ||
| Comment by Ross Lawley [ 13/May/15 ] | ||
|
Thanks adecoud, it is indeed a regression and your fix round is correct. For other users of 3.0.0 or 3.0.1 please use:
Instead of:
Until this is fixed. |