- Issue created by @malcomio
- First commit to issue fork.
- Merge request !9Issue #3444339: Files do not exist for stubs created via config → (Open) created by suryabhi
When stubs are created via config, the JSON files are not saved to the public://stubby
directory
So when you try to visit the URL for one of these stubs, you see the following error:
Drupal\Core\File\Exception\DirectoryNotReadyException: The specified file 'temporary://fileubLtwr' could not be copied because the destination directory 'public://stubby' is not properly configured. This may be caused by a problem with file or directory permissions. in Drupal\Core\File\FileSystem->prepareDestination() (line 479 of core/lib/Drupal/Core/File/FileSystem.php).
1. create a stub
2. export config
3. import config on a different environment
4. visit the stub URL - the error occurs
5. manually create a new stub via the UI
6. visit the config stub URL - the error no longer occurs
tbc - ensure that the directory is created when entities are created, rather than in the StubForm class validate method?
Active
1.0
Code