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

JSONPatch functionality #5480

Closed
manusa opened this issue Sep 25, 2023 · 3 comments · Fixed by #6276
Closed

JSONPatch functionality #5480

manusa opened this issue Sep 25, 2023 · 3 comments · Fixed by #6276

Comments

@manusa
Copy link
Member

manusa commented Sep 25, 2023

Description

Currently, we're leveraging Fabric8 outdated fork of https://github.com/flipkart-incubator/zjsonpatch.

The fork includes several commits ahead of the forked repository to remove dependencies (one of the principles in the Fabric8 Kubernetes Client is to keep dependencies to the minimum).
This comment provides additional details: #3489 (comment)

We need to find a proper replacement. we're not affected by security issues because our Jackson dependency is managed by the client project. However, eventually these dependencies might not be compatible any more.

Relates to:

Copy link

stale bot commented Dec 26, 2023

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

@stale stale bot added the status/stale label Dec 26, 2023
@stale stale bot closed this as completed Jan 4, 2024
@manusa manusa reopened this Mar 4, 2024
@manusa manusa added this to the 7.0.0 milestone May 2, 2024
@rohanKanojia rohanKanojia self-assigned this Aug 12, 2024
@rohanKanojia
Copy link
Member

I see this library being used in these places:

In these usages, I only see these two calls:

  • JsonPatch.apply()
  • JsonDiff.asJson()

Instead of relying on io.fabric8.zjsonpatch library can we implement/port these methods ?

@rohanKanojia
Copy link
Member

flipkart-incubator/zjsonpatch Dependencies :

com.fasterxml.jackson.core:jackson-databind:2.14.0
com.fasterxml.jackson.core:jackson-databind:2.14.0
org.apache.commons:commons-collections4:4.4

fabric8io/zjsonpatch Dependencies:

com.fasterxml.jackson.core:jackson-databind:2.8.5
com.fasterxml.jackson.core:jackson-databind:2.8.5

Upstream fork is using commons-collections4 dependency to compute longest common subsequence among two JsonNodes while computing JsonDiff.asJson .

Fabric8 ZJsonPatch fork is using a ported version of Apache commons-collections4 's ListUtils class to avoid this dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants