-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[config] load fails if libxml_disable_entity_loader is globally set to true #18876
Comments
xabbuh
added
DependencyInjection
Status: Reviewed
and removed
Status: Needs Review
Unconfirmed
Config
labels
May 29, 2016
@krichprollsch Can you confirm that the fix from #18908 fixes your issue? |
yes it is 👍 |
nicolas-grekas
added a commit
that referenced
this issue
May 30, 2016
…ty loaders (xabbuh) This PR was merged into the 2.3 branch. Discussion ---------- [DependencyInjection] force enabling the external XML entity loaders | Q | A | ------------- | --- | Branch? | 2.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #18876 | License | MIT | Doc PR | Commits ------- 142b1a4 force enabling the external XML entity loaders
fabpot
added a commit
that referenced
this issue
Jun 13, 2016
…ty loaders (xabbuh) This PR was merged into the 2.7 branch. Discussion ---------- [DependencyInjection] force enabling the external XML entity loaders | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #18876, #18908 | License | MIT | Doc PR | Commits ------- 12b5509 force enabling the external XML entity loaders
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a
libxml_disable_entity_loader
is set totrue
somewhere, the xml parsing fails after a cache directory deletion with the error:You can reproduce with a fresh install of symfony and a bundle using xml config.
Add a
libxml_disable_entity_loader(true);
before the kernel boot and remove the cache directory.The issue exists only via a web request, the console cli is not impacted.
Im not sure how to fix the problem. We could force
libxml_disable_entity_loader(false)
before the xml validation test [1] as it appears to be required, and reset the value after.The text was updated successfully, but these errors were encountered: