Skip to content

feat: Update Flysystem to 3.x - #17024

Open
matdave wants to merge 2 commits into
modxcms:3.xfrom
matdave:3.x_flysystem
Open

matdave wants to merge 2 commits into
modxcms:3.xfrom
matdave:3.x_flysystem

Conversation

@matdave

@matdave matdave commented Sep 9, 2026

Copy link
Copy Markdown
Member

What changed and why

Update Flysystem to version 3. Currently MODX Is on Flysystem 2.x which has many broken features that have been left unmaintained. A critical broken feature is the inability to rename, move or copy objects in S3.

How to test

Apply the new composer.json and test file operations

Compatibility notes

Flysystem 3.x is stated as being backwards compatible with 2.x, with the primary difference being it requires PHP 8, which MODX also now requires.

Breaking change assessment

This is likely not patch level safe, as it is a full library upgrade.

Related Issues

thephpleague/flysystem#1759

@matdave
matdave marked this pull request as ready for review September 10, 2026 14:05
@Ibochkarev

Copy link
Copy Markdown
Collaborator

Tested with modx-pr-tester.

Browser: Chrome browser / macOS (Docker PHP 8.2).
Result: Pass.
Packages: flysystem 3.36.0, aws-s3-v3 3.35.3, ftp 3.35.3.

Local Filesystem media source: create/list/rename/move/remove OK (19/19 smoke).
Manager media browser loads.

Did not test live S3/FTP remotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants