Skip to content

Load extensions by normalized name and cast RBAC role to string - #125

Open
arodu wants to merge 6 commits into
CakeDC:12.x-cake5.0from
arodu:feature/43963-12x
Open

arodu wants to merge 6 commits into
CakeDC:12.x-cake5.0from
arodu:feature/43963-12x

Conversation

@arodu

@arodu arodu commented Oct 13, 2026

Copy link
Copy Markdown
Member

CakePHP 5 compatibility fixes:

  • Extension loading — normalizeArray() now returns name => config (the
    class/config shape is gone), so Service/Action::_loadExtensions()
    passed null to load() and threw.
  • RBAC role — the role is forwarded to rules typed string $role; integer
    roles (group ids) threw a TypeError. Now cast to string.

Adds regression tests (ExtensionLoadingTest, ApiRbacTest) that fail before
the fix. Plugin suite (130 tests) and a downstream app suite (1789 tests) pass.

Also adds config.policy.advisories.ignore: ["league/flysystem"] so the
testsuite job can composer update (it was blocked by flysystem 1.x
advisories pulled by the flysystem-vfs dev-dependency).

Refs #43963.

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.

1 participant