You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like md5 hash doesn't work as earlier in gridfs, and all files will be added without checking md5 (file in file = self.fs.find_one({"filename": abs_path, "md5": md5}) always None), I fixed it like _id = self.fs.put(f, filename=abs_path, md5=md5) but not sure this is the correct one
Hi! I'd like to work on this. Could I be assigned?
I've reproduced it on current master with PyMongo 4.x: saving the same unchanged
source file twice stores two copies in GridFS instead of reusing the first one.
I have a fix with a regression test ready to open as a PR.
Quick scope question: resource_event() uses the same md5 lookup and looks
affected too. Should I include it in the same PR or open a separate one?
Activity
adriennie commentedon Oct 26, 2026
Hi! I'd like to work on this. Could I be assigned?
I've reproduced it on current master with PyMongo 4.x: saving the same unchanged
source file twice stores two copies in GridFS instead of reusing the first one.
I have a fix with a regression test ready to open as a PR.
Quick scope question:
resource_event()uses the same md5 lookup and looksaffected too. Should I include it in the same PR or open a separate one?
@thequilo