Closed martin-frydl closed 1 day ago
Thank you for your feedback. Tagging and routing to the team member best able to assist.
Thank you for reporting this @martin-frydl!
I'll file a PR to resolve this and include the information you've given to add tests that will prevent this in the future.
Describe the bug
java.lang.IllegalStateException: Recursive update
exception is thrown whenHttpLogOptions
class is initialized with security manager enabled.Exception or Stack Trace
To Reproduce
When running set
-Djava.security.manager -Djava.security.policy=policy.policy
where policy file contained following (just to make it run):Expected behavior Working initialization. It works fine in version 1.53.0 but fails in 1.54.0.
Setup:
Additional context The problem is in
ReflectionUtilsMethodHandle.performSafePrivateLookupIn()
whereImplUtils.doPrivilegedException()
is called.ImplUtils
gets initializated by calling exactly the same method -HttpHeaderName.fromString()
- leading to setting the same key in the same map.