-
Notifications
You must be signed in to change notification settings - Fork 751
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
choose different serialization scheme for storing configuration #2329
Comments
Yes, finally. |
Looks like yaml would be the way to go. |
Also, the configuration should be treated as data, not serialized objects, to avoid security vulnerabilities that might happen when de-serializing XML into Java objects. |
The other reason for using something else is performance. Lately, I realized that
Now, I did this exercise in order to simulate read timeout problems that occur right after running all-project sync using the |
Another feature that could be brought with new serialization scheme is wildcards. For instance, I'd like to be able to set project properties for a set of projects specified with wildcards (regexps, even), similarly to what is done in projects:
apache-httpd-.*:
proxy: true |
YAML is probably not so great so perhaps using something like TOML might be better idea, however still need to address the need for serialization of objects like |
The XML encoder used for configuration serialization is not very robust (e.g. in the face of changing class hierarchy and removing configuration options) and has some quirks (#2002). We should consider using something else (YAML/JSON ?).
Also, this serialization is used not only for configuration but also elsewhere (
IndexAnalysisSettings
).The text was updated successfully, but these errors were encountered: