[CDRIVER-2740] mongoc_gridfs_file_readv aborts when a chunk is larger than chunkSize Created: 12/Jul/18 Updated: 28/Oct/23 Resolved: 23/Jul/18 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | GridFS, libmongoc |
| Affects Version/s: | 1.11.0 |
| Fix Version/s: | 1.13.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ben Cheong | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
To reproduce:
Client side library should check for this corrupted case, instead of asserting the execution? The libmongoc should be fixed, since server side data corruption should not assert client side execution. |
| Comments |
| Comment by Githook User [ 23/Jul/18 ] |
|
Author: {'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com'}Message: GridFS had asserted that each chunk's length was at most chunkSize. |
| Comment by A. Jesse Jiryu Davis [ 12/Jul/18 ] |
|
We should set an error, the file is "corrupt". |
| Comment by A. Jesse Jiryu Davis [ 12/Jul/18 ] |
|
Agreed, thanks for the report. |