Skip to content

Remote Filesystem mv/cp bug - #2738

Merged
norberttech merged 2 commits into
1.xfrom
fs-http-client
Nov 13, 2026
Merged

norberttech merged 2 commits into
1.xfrom
fs-http-client

Conversation

@norberttech

Copy link
Copy Markdown
Member

Resolves: #xxx

Change Log


Added

  • flow-php/filesystem-async-aws-bridge - http limits (timeout, max_duration, max_retries) in the client configuration
  • flow-php/filesystem-async-aws-bridge - Options::withCopyPartSize() and aws_s3_filesystem_options()
  • flow-php/filesystem-azure-bridge - http limits (timeout, max_duration, max_retries) in the blob service configuration
  • flow-php/filesystem-azure-bridge - Options::withCopyPartSize()
  • flow-php/azure-sdk - putBlockBlobBlockFromBlob() and AuthorizationFactory::readOnlySourceUrl()
  • flow-php/azure-sdk - content headers and metadata on BlobProperties and PutBlockBlobBlockListOptions
  • flow-php/symfony-filesystem-bundle - client.http and options.copy_part_size for aws_s3 and azure_blob

Fixed

  • flow-php/filesystem-async-aws-bridge - mv() of an object above 5 GB, now a multipart copy in ranged parts
  • flow-php/filesystem-async-aws-bridge - append no longer deletes the original before its replacement exists
  • flow-php/filesystem-async-aws-bridge - append without bytes no longer empties the object
  • flow-php/filesystem-async-aws-bridge - a 200 response with error XML no longer deletes the source of a move
  • flow-php/filesystem-azure-bridge - mv() no longer deletes the source of a pending copy
  • flow-php/azure-sdk - getBlobProperties() sends HEAD and no longer downloads the blob

Changed

  • flow-php/filesystem-async-aws-bridge - S3 calls default to a 30 s idle timeout and a 300 s total limit
  • flow-php/filesystem-async-aws-bridge - append builds its upload on the target key, without the _flow_php_append_ object
  • flow-php/filesystem-azure-bridge - requests default to a 30 s idle timeout, a 300 s total limit and 3 retries
  • flow-php/azure-sdk - copyBlob() is synchronous, signs the source and throws on a pending copy

Removed

  • flow-php/azure-sdk - BlobProperties::content()

Deprecated

Security

…rts for remote filesystems

- S3 and Azure client configuration take an "http" key (timeout, max_duration, max_retries) that is part of the description, defaults 30 / 300 / 3
- the filesystem bundle takes client.http for aws_s3 and azure_blob, and options.copy_part_size for aws_s3
- S3 mv() sends one CopyObject up to copy_part_size (256 MiB) and a multipart copy in ranged parts above it, with the source metadata
- S3 append builds its upload on the target key, the _flow_php_append_ object is gone
- an append no longer deletes the original before its replacement exists, and an append without bytes keeps the content
- a 200 response with error XML from CopyObject, UploadPartCopy or CompleteMultipartUpload throws before anything is deleted
- mv() of an object onto itself sends no request
- aws_s3_filesystem_options() DSL function, the default block size of the S3 destination stream is 5 MiB
…fter a confirmed copy

- mv() copies synchronously: one Copy Blob up to copy_part_size (256 MiB), ranged blocks with the source properties above it
- azure-sdk: copyBlob() is synchronous and throws on a pending copy, new putBlockBlobBlockFromBlob()
- the copy source is signed with a read-only SAS for one blob, AuthorizationFactory::readOnlySourceUrl()
- getBlobProperties() sends HEAD and no longer downloads the blob, BlobProperties::content() is removed
- Options::withCopyPartSize() and the bundle options.copy_part_size for azure_blob
- compose.yml.dist pins azurite to 3.37.0
@norberttech norberttech added this to the 0.48.0 milestone Nov 13, 2026
@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.35345% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.04%. Comparing base (decfd56) to head (ce02607).
⚠️ Report is 1 commits behind head on 1.x.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##                1.x    #2738      +/-   ##
============================================
+ Coverage     91.01%   91.04%   +0.03%     
- Complexity    32029    32121      +92     
============================================
  Files          2237     2237              
  Lines         92557    92882     +325     
============================================
+ Hits          84239    84566     +327     
+ Misses         8318     8316       -2     
Components Coverage Δ
etl 96.20% <ø> (ø)
cli 87.40% <ø> (ø)
lib-array-dot 96.52% <ø> (ø)
lib-azure-sdk 67.98% <100.00%> (+3.80%) ⬆️
lib-doctrine-dbal-bulk 94.25% <ø> (ø)
lib-filesystem 89.08% <ø> (-0.09%) ⬇️
lib-types 94.64% <ø> (ø)
lib-parquet 82.80% <ø> (ø)
lib-parquet-viewer 83.15% <ø> (ø)
lib-snappy 89.86% <ø> (ø)
lib-dremel 0.00% <ø> (ø)
lib-postgresql 90.42% <ø> (ø)
lib-telemetry 86.85% <ø> (ø)
bridge-filesystem-async-aws 96.72% <98.59%> (+0.59%) ⬆️
bridge-filesystem-azure 95.34% <100.00%> (+0.95%) ⬆️
bridge-filesystem-sftp 90.29% <ø> (ø)
bridge-monolog-http 96.84% <ø> (ø)
bridge-monolog-telemetry 92.85% <ø> (ø)
bridge-openapi-specification 91.95% <ø> (ø)
symfony-http-foundation 80.76% <ø> (ø)
bridge-symfony-console 98.01% <ø> (ø)
bridge-psr18-telemetry 100.00% <ø> (ø)
bridge-psr3-telemetry 98.95% <ø> (ø)
bridge-psr7-telemetry 100.00% <ø> (ø)
bridge-telemetry-otlp 90.11% <ø> (ø)
bridge-symfony-http-foundation-telemetry 92.85% <ø> (ø)
bridge-symfony-filesystem-bundle 93.15% <100.00%> (+0.14%) ⬆️
bridge-symfony-filesystem-cache 98.18% <ø> (ø)
bridge-symfony-postgresql-bundle 93.35% <ø> (ø)
bridge-symfony-postgresql-cache 94.41% <ø> (ø)
bridge-symfony-postgresql-messenger 98.80% <ø> (ø)
bridge-symfony-postgresql-session 93.65% <ø> (ø)
bridge-symfony-telemetry-bundle 90.76% <ø> (ø)
adapter-chartjs 82.46% <ø> (ø)
adapter-csv 97.68% <ø> (ø)
adapter-doctrine 95.14% <ø> (ø)
adapter-google-sheet 97.53% <ø> (ø)
adapter-http 87.18% <ø> (ø)
adapter-json 90.62% <ø> (ø)
adapter-logger 47.05% <ø> (ø)
adapter-parquet 97.20% <ø> (ø)
adapter-text 97.68% <ø> (ø)
adapter-xml 98.01% <ø> (ø)
adapter-avro 6.25% <ø> (ø)
adapter-excel 96.79% <ø> (ø)
adapter-postgresql 97.35% <ø> (ø)
adapter-seal 90.00% <ø> (ø)
bridge-phpunit-postgresql 75.30% <ø> (ø)
bridge-phpunit-telemetry 87.36% <ø> (ø)
bridge-phpstan-types 0.00% <ø> (ø)
bridge-postgresql-valinor 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@norberttech
norberttech merged commit a16b21f into 1.x Nov 13, 2026
21 checks passed
@norberttech
norberttech deleted the fs-http-client branch November 13, 2026 18:04
@github-project-automation github-project-automation Bot moved this from Todo to Done in Roadmap Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant