Commit 6c38307f authored by George's avatar George
Browse files

Issue #3280388: The maximum length of the Block ID can be exceeded.

parent 8abb4ee8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -424,7 +424,9 @@ class AzBlobFsStream extends AzBlobFsStreamWrapper implements StreamWrapperInter
    }

    try {
      $block_id = base64_encode(basename($this->uri));
      // Make sure not to exceed max length for block id.
      $block_id = base64_encode(md5(basename($this->uri)));
      
      $blocks = [new Block($block_id, 'Uncommitted')];
      $blocksList = BlockList::create($blocks);