-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
snakeyaml历史版本漏洞,升级2.x后存在兼容性问题 #4960
Comments
Init Apollo Local Config failed - namespace: application.yml, reason: Parse yaml file content failed for namespace: application.yml [Cause: org.yaml.snakeyaml.constructor.SafeConstructor: method ()V not found]. |
看起来是 snakeyaml 大版本升级后删除了 SafeConstructor 的默认构造函数,建议升级到 1.x 的最新版本吧 |
目前 snakeyaml 1.x 已经没有合适的最新版本可以使用,必须使用 2.x 的版本 |
apollo 2.2.0还要多久可以release? snakeyaml1.x已经被客户禁用了。 |
Apollo java version 2.2.0 is now available for download. You can access this latest release at Maven Central. |
请问这块是怎么建议的. 怎么兼容呢,换一个新的yaml解析库吗 |
Which version of Spring are you currently utilizing? I assume it would be compatible with the majority of Spring versions. |
Hi, I also encountered it. My version is also Apollo 2.1, spring boot is 3.2.0, spring cloud 2023.0.0 |
I have many spring cloud gateway configurations |
2023-12-14 21:31:48.401 [] [main] WARN c.ctrip.framework.apollo.internals.DefaultConfig - Init Apollo Local Config failed - namespace: application.yml, reason: Parse yaml file content failed for namespace: application.yml [Cause: org.yaml.snakeyaml.constructor.SafeConstructor: method 'void ()' not found]. |
|
You could now use apollo 2.2.0 |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions. |
我在引入了apollo-client 2.1.0后发现snakeyaml的版本还是使用的1.29,故升级snakeyaml版本为2.x,但是升级到2.x后,存在兼容性问题
代码文件:YamlParser.java
The text was updated successfully, but these errors were encountered: