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

Latest version not parsing List and Map values from json file #723

Open
anuran-Chakraborty opened this issue May 2, 2024 · 1 comment
Open
Assignees

Comments

@anuran-Chakraborty
Copy link

We have an application which uses netflix archaius 2.3.4 for configuration management from AWS AppConfig. The values are stored as Json and appropriate parsers and ConfigProviders have been written. As per the version being used we made a new class for List and Map types which extends ArrayList and HashMap and has a string constructor using jackson ObjectMapper. The config proxy created is successfully able to parse that.
However, with a requirement to upgrade to JDK17 we now need to upgrade the version and upgraded the version to the latest version. But now those class types are no longer getting correctly parsed into list and map and is returning null and returning default value if set. If we remove the extended classes and instead use List and Map type directly then also parsing is not working correctly. For map it is returning as {} and for list it is returning as ["["a", "ab","c"]"] instead of ["a", "ab", "c"].
Are the changes made after the old version not backward compatible? If not how do we fix it.
Note: We tried with all versions of JDK and it is not working with any of them.

@rgallardo-netflix
Copy link
Contributor

Could you please add:

  • Version that works
  • Version that does not. If at all possible, it would be great if you could identify the exact release.
  • A small code that shows the error
    Thanks

@rgallardo-netflix rgallardo-netflix self-assigned this May 22, 2024
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

No branches or pull requests

2 participants