Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_isPathWriteable giving error: The given destination is not writable #399

Open
woranl opened this issue Jan 18, 2024 · 0 comments
Open

_isPathWriteable giving error: The given destination is not writable #399

woranl opened this issue Jan 18, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@woranl
Copy link

woranl commented Jan 18, 2024

Sometimes when multiple file transfers take place in parallel, an error may arise saying The given destination is not writable. It appears that in the _isPathWriteable function of Zend/File/Transfer/Adapter/Abstract.php, the $tempFile .= '/' . 'test.1'; is rather limiting. Multiple transfers may have tried to write text.1 at the same time, resulting in the error. Perhaps some randomness like $tempFile .= '/' . 'test.'.mt_rand(1, 1000); should be use instead to avoid the chance of collision.

@develart-projects develart-projects self-assigned this Feb 5, 2024
@develart-projects develart-projects added the bug Something isn't working label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants