Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-1142

GridFS\Bucket::$disableMD5 not used

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.16.0
    • Affects Version/s: None
    • Component/s: GridFS
    • None

      https://github.com/mongodb/mongo-php-library/pull/1079/files#r1205730523

      This looks like a bug.

      The option was introduced in f169616 for PHPLIB-319. The GridFS spec notes that it's relevant so long as a driver still supports MD5 hashes, which PHPLIB does.

      It looks like openUploadStream() never inherits the Bucket's default value like it does for chunkSizeBytes. I believe all of the existing spec tests only set the option when invoking the operation, so the Bucket inheritance is never tested.

            Assignee:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: