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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 0.9
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Eliot Horowitz (Inactive)
            Reporter:
            Jason Sachs
            None
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: