Skip to content

yaml_writer: the parent directory is created without condition, a stream wrapper path fails #368

Closed

Description

@njoubert-cleverage

Regression of 5.5 (#345).

YamlWriterTask (yaml_writer) now creates the parent directory of file_path without condition:

  • with a stream wrapper that does not support mkdir() (compress.zlib:///tmp/out.yaml.gz, and the same for remote wrappers such as s3://), the task fails with Directory "compress.zlib:///tmp" was not created, while the file was written in 5.4.1;
  • with php://stdout (or php://output, php://memory), the file is written but a php: directory is created in the current directory.

The CHANGELOG says "as for the other writers", but CsvFile and JsonStreamFile exclude the php:// streams.

Fix: create the parent directory only for a local path (no scheme, or file://).

Found during the audit after the 5.5 release (audit-v4-post-release.md #215).

Activity

  1. added a commit that references this issue on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions