-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Symfony LockHandler throws wrong error #22882
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
Comments
Note that you're reporting this bug for symfony 2.6.* versions, which are not supported anymore (for a long time). Can you verify if this is the same with 2.7? The fil
8000
e you linked is in the master, but in 2.6, the behavior is different: https://github.com/symfony/filesystem/blob/2.6/LockHandler.php#L69 |
@Xendiadyon Can you check if #22910 improves the error message for you? |
This PR was merged into the 2.7 branch. Discussion ---------- [Filesystem] improve error handling in lock() | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22882 | License | MIT | Doc PR | Commits ------- 25381a2 [Filesystem] improve error handling in lock()
Uh oh!
There was an error while loading. Please reload this page.
In https://github.com/symfony/filesystem/blob/master/LockHandler.php the error_handler is deactivated from lines 70-82. Thus, if an error is thrown in line 85-86, the error-message is wrong.
Found in contao/core-bundle upon symlink generation: contao/core-bundle#845
The system tries to open a specific file in /tmp but has no read/write access due to malconfiguration (?). A Critical Exception is thrown, but the error-message does not fit to the error.
The text was updated successfully, but these errors were encountered: