Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
27 Nov 2026

Pull Request for Issue # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

This change was created with the help of AI (Claude Code).

Summary of Changes

The CSV export creates the target directory with mkdir() but ignores the result. If the directory can't be created (permissions, invalid path), the command continues and only fails later with "Unable to open target file path for writing operations", which hides the actual cause.

The command now stops with "Unable to create the target directory: …" in that case.

Testing Instructions

Run php cli/joomla.php weblinks:sync-csv --action=export --file=/root/not-allowed/export.csv as a user without write access to the parent directory (or use a path on a read-only location).

Expected result

Error: Unable to create the target directory: …

Actual result

PHP warning from mkdir() followed by "Unable to open target file path for writing operations".

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment