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

GridFS.read(String filename) should specify how it handles multiple files with the same name

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 0.9
    • None
    • None
    • None

    Description

      Since it's possible to store multiple files with the same name (ObjectId unique), it's unclear what GridFS.read(String filename) should do. Either return the first one (hmmmm....) or throw an exception, or return a List<GridFSObject> or Collection<GridFSObject>. My suggestion would be a List<>, I suppose.

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            jmsachs Jason Sachs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: