Skip to content

Conversation

asomov
Copy link
Contributor

@asomov asomov commented Feb 28, 2023

SnakeYAML 2.0 deliveres backwards incompatible changes
https://bitbucket.org/snakeyaml/snakeyaml/wiki/Changes

@asomov
Copy link
Contributor Author

asomov commented Feb 28, 2023

@bclozel Spring is not affected by CVE-2022-1471, but yes the tooling should stop complaining after this PR

@bclozel bclozel added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Feb 28, 2023
@bclozel bclozel added this to the 6.1.0-M1 milestone Feb 28, 2023
@bclozel
Copy link
Member

bclozel commented Feb 28, 2023

This change makes SnakeYaml 2.0+ a requirement for all Spring applications. We're scheduling this for 6.1.0 right now, but we might upgrade Spring Boot 3.1.0 to SnakeYaml 2.0 before that if the source/runtime compatibility is fine.

@zhudaxi
Copy link

zhudaxi commented Feb 28, 2023

Any plan to apply this fix to Spring Boot 2.x version? Thanks.

@asomov
Copy link
Contributor Author

asomov commented Mar 1, 2023

@bclozel I can also contribute a PR to Spring Boot

@oreissig
Copy link

oreissig commented Mar 1, 2023

Is it possible to update the code such that Spring only uses a subset of snakeyaml, that is not affected by backwards-incompatible changes?
If so, we could leave older versions on their currently used version of snakeyaml, while allowing consumers to override to 2.0 if desired.

@sbrannen sbrannen added the in: core Issues in core modules (aop, beans, core, context, expression) label Mar 1, 2023
@bclozel
Copy link
Member

bclozel commented Mar 1, 2023

@zhudaxi that's a question for the Spring Boot team, I believe they're looking into it already.

@asomov I don't think a PR is needed, the team is already looking into it.

@oreissig yes that's our goal.

@asomov
Copy link
Contributor Author

asomov commented Mar 7, 2023

this PR fixes failing YamlProcessorTests

@jhoeller jhoeller changed the title SnakeYAML 2.0 is released Upgrade to SnakeYAML 2.0 Mar 7, 2023
@jhoeller jhoeller added type: dependency-upgrade A dependency upgrade and removed type: enhancement A general enhancement labels Mar 7, 2023
@patpatpat123

This comment was marked as outdated.

@philwebb

This comment was marked as outdated.

@patpatpat123

This comment was marked as outdated.

@XSpielinbox

This comment was marked as outdated.

@snicoll

This comment was marked as outdated.

@XSpielinbox

This comment was marked as outdated.

@spencergibb

This comment was marked as outdated.

@bclozel bclozel self-assigned this May 22, 2023
@bclozel bclozel closed this in 097758b May 22, 2023
bclozel added a commit that referenced this pull request May 22, 2023
@asomov asomov deleted the snake-2-0 branch May 22, 2023 13:03
nidhi-nair added a commit to appsmithorg/appsmith that referenced this pull request Jun 8, 2023
## Description
Upgrades SnakeYaml dependency version forcefully to 2.0 to overcome
[this
issue](spring-projects/spring-boot#33457), as
advised
[here](spring-projects/spring-boot#34405 (comment)).

This version tag can be reverted when we upgrade to Spring 6.1, which is
when the library
[aims](spring-projects/spring-framework#30048 (comment))
to upgrade the version themselves.

Fixes appsmithorg/appsmith-ee#1233

#### Type of change
- Chore (housekeeping or task changes that don't impact user perception)

## Testing
This PR will be tested during regression.

---------

Co-authored-by: Arpit Mohan <mohanarpit@users.noreply.github.com>
Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
@davidghiurco
Copy link

Are there any plans to backport the SnakeYAML 2.0+ upgrade into Spring Boot 2.7.x, for those unable to migrate to Spring Boot 3.x?

@bclozel
Copy link
Member

bclozel commented Sep 12, 2024

@davidghiurco Spring Boot 2.7.x is out of open source support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: dependency-upgrade A dependency upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.