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

D7: file_get_stream_wrappers cache poisoning in update_check_requirements() #3789

Merged
merged 1 commit into from
Feb 7, 2019

Conversation

das-peter
Copy link

Currently update_check_requirements() runs update_check_requirements() before a full bootstrap. And update_check_requirements() performs a writeable check on the filesystem - which invokes the file stream wrapper handling.
This fills a the static cache of file_get_stream_wrappers and because of the low bootstrap level not all available stream wrappers will be registered.

This can lead to missing stream wrappers in update hooks.

We should reset the file_get_stream_wrappers static cache before running the full bootstrap which then will re-evaluate the available stream wrappers.

…ents()

Currently  `update_check_requirements()` runs `update_check_requirements()` before a full bootstrap. And `update_check_requirements()` performs a writeable check on the filesystem - which invokes the file stream wrapper handling.
This fills a the static cache of `file_get_stream_wrappers` and because of the low bootstrap level not all available stream wrappers will be registered.

This can lead to missing stream wrappers in update hooks.

We should reset the file_get_stream_wrappers static cache before running the full bootstrap which then will re-evaluate the available stream wrappers.
@greg-1-anderson greg-1-anderson merged commit d09bf69 into drush-ops:8.x Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants