- Notifications
You must be signed in to change notification settings - Fork914
More defensive guards against invalid code points in ant Preferences#8943
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
More defensive guards against invalid code points in ant Preferences#8943
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Once the Preferences is loaded containing U+0000 in a key, it can'tbe used anymore since even removing that key (e.g via clear()) willthrow IAE.What we can do however is to remove and recreate the Preferences node.
matthiasblaesing left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This is really ugly and IMHO a JDK issue. Anyway for us we have no real alternative, so I don't see an alternative.
mbien commentedOct 21, 2025
agreed. At least |
a99e87c intoapache:deliveryUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
followup on#6094
Once
Preferencesis loaded containingU+0000in a key, it can't be used anymore since even removing that key (e.g via clear()) will throw IAE.What we can do however is to remove and recreate the Preferences node.
example output with this change active:
tested by corrupting the config file using this script:
closes#8941
targets delivery