Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-442

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.6.5
    • API
    • None
    • OSX, mongod 2.0.0

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            ddcadamb Adam Burnett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: