Skip to content

[6.x] Fall back to default Glide cache permissions when not configured - #15987

Merged
jasonvarga merged 1 commit into
statamic:6.xfrom
davideprevosto:fix/glide-missing-permissions-config
Nov 21, 2026
Merged

jasonvarga merged 1 commit into
statamic:6.xfrom
davideprevosto:fix/glide-missing-permissions-config

Conversation

@davideprevosto

Copy link
Copy Markdown
Contributor

Fixes #15986

Apps with a config/statamic/assets.php published before 6.43 don't have the new image_manipulation.permissions key. Config::get() then returns false, and the app crashes on boot with a TypeError from Flysystem.

This adds explicit defaults (0644 for files, 0755 for directories), the same values as the shipped config.

Includes a test covering the missing-key case.

@jasonvarga
jasonvarga merged commit 0d8132c into statamic:6.x Nov 21, 2026
62 checks passed
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.

TypeError in GlideManager after upgrading to 6.43 when published assets.php lacks image_manipulation.permissions

2 participants