Local stream wrappers break when directory is missing

Created on 10 January 2020, almost 5 years ago
Updated 8 August 2024, 3 months ago

Problem/Motivation

When a local stream wrapper's base directory is missing, an error is generated.
๐Ÿ› Translations directory not autocreated Needs review is an instance of this for the translation stream wrapper.
This is a common situation when DB is copied to a dev site, but not files (maybe relying on stage_file_proxy).
This is ugly DX.

Proposed resolution

Have local stream wrappers autocreate the configured base directory.
An error is still generated if this is not possible.

Remaining tasks

Roll a patch, review, RTBC, commit.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

A local stream wrapper's configured base directory is now autocreated if missing.
Formerly, if e.g. the configured translation directory was missing on dev sites, the site would error out on translation updates.

๐Ÿ› Bug report
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
File systemย  โ†’

Last updated about 11 hours ago

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany geek-merlin Freiburg, Germany

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024