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

FISH-7757 FISH-8344 Upgrade to Parsson 1.1.5 with JSONP-API Deprecated to 2.1.0 #6612

Merged
merged 4 commits into from
Apr 1, 2024

Conversation

Pandrex247
Copy link
Member

@Pandrex247 Pandrex247 commented Mar 29, 2024

Description

Upgrades us to Parsson 1.1.5 with the JSONP-API deprecated to 2.1.0 to grab the fixes for CVE-2023-4043.
Parsson 1.1.5 includes the same upgrades that caught us out when we tried to upgrade to 1.1.4 - JSONP-API has been updated from 2.1.0.

Changes introduced in JSONP-API to the JsonProvider.provider() method appear to break our TCK runner.
They reworked how system properties are loaded by this SPI class, and it now (correctly) finds the system property. This however breaks us because this SPI class doesn't fall back to the other methods available for loading the factory class (service loader, OSGi, default) - it simply fails with a (wrapped) ClassNotFoundException.
In our case, we previously passed this TCK test because our Service Loader would end up returning the expected dummy TCK factory class, and now it doesn't reach this point. Payara is attempting to load the dummy factory class using the class loader available to the jakarta.json.jar module - the OSGi bundle class loader. This fails as the jakarta.json.jar module doesn't have the dummy TCK factory class as an OSGi import, and it's not otherwise available on this class loader.

This PR is a temporary measure just so we have the CVE fix - the intent is that we will continue to investigate and address this class loader issue for a future release.

Important Info

Blockers

payara/patched-src-parsson#2

Testing

New tests

None

Testing Performed

Built the blocking PR, built Payara, and ran the JSONP TCK.

Testing Environment

Windows 11, Zulu 11.0.22

Documentation

payara/Payara-Documentation#423

Notes for Reviewers

See description.

Signed-off-by: Andrew Pielage <[email protected]>
Signed-off-by: Andrew Pielage <[email protected]>
@Pandrex247 Pandrex247 changed the title FISH-7757 Upgrade to Parsson 1.1.5 with JSONP-API Deprecated to 2.1.0 FISH-7757 FISH-8344 Upgrade to Parsson 1.1.5 with JSONP-API Deprecated to 2.1.0 Mar 29, 2024
Use patched Parsson 1.1.5 with JSONP API deprecated to 2.1.0 as changes to the JsonProvider.provider method break us.

Signed-off-by: Andrew Pielage <[email protected]>
Copy link
Contributor

@breakponchito breakponchito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Pandrex247 Pandrex247 merged commit 440770b into payara:master Apr 1, 2024
1 check passed
@Pandrex247 Pandrex247 deleted the FISH-7757 branch April 1, 2024 13:59
Pandrex247 added a commit to Pandrex247/Payara that referenced this pull request Apr 4, 2024
FISH-7757 FISH-8344 Upgrade to Parsson 1.1.5 with JSONP-API Deprecated to 2.1.0
Pandrex247 added a commit to Pandrex247/Payara that referenced this pull request May 2, 2024
FISH-7757 FISH-8344 Upgrade to Parsson 1.1.5 with JSONP-API Deprecated to 2.1.0
Pandrex247 added a commit to Pandrex247/Payara that referenced this pull request May 8, 2024
FISH-7757 FISH-8344 Upgrade to Parsson 1.1.5 with JSONP-API Deprecated to 2.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants