[SERVER-1152] mongoimport not creating object for valid JSON file input Created: 25/May/10 Updated: 12/Jul/16 Resolved: 03/Jun/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Tools |
| Affects Version/s: | 1.4.1, 1.5.1 |
| Fix Version/s: | 1.5.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Fitz Agard | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Participants: |
| Description |
|
mongoimport --verbose -d test -c ctest --file ~/input.json connected to: 127.0.0.1 imported 0 objects I only tested this on 1.5.1 and 1.4.1 |
| Comments |
| Comment by auto [ 03/Jun/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: Make mongoimport work w/o final EOL. |
| Comment by Fitz Agard [ 25/May/10 ] |
|
Thanks for the update. Adding the trailing newline worked. |
| Comment by Mathias Stearn [ 25/May/10 ] |
|
The issue is that the file doesn't have a trailing newline. I'll fix mongoimport so it will work without one, but for now, adding one can fix it on your end. |