Index on chunks collection not getting created when adding a file via GridFS

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.6.5
    • Component/s: API
    • None
    • Environment:
      OSX, mongod 2.0.0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Saving a file using the GridFS API is not creating the required index in the chunks collection for files_id and n. The result is that after saving a file calling GridFSInputFile.validate() will throw a NullPointerException. Attached is a maven based project to reproduce. Run with: mvn test

      Current workaround is to create the index per the spec

            Assignee:
            Unassigned
            Reporter:
            Adam Burnett
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: