[
https://issues.jboss.org/browse/WFLY-12191?page=com.atlassian.jira.plugin...
]
Alessio Soldano commented on WFLY-12191:
----------------------------------------
Hi [~dwuysan] and [~brian.stansberry], I haven't tried this, but I suspect it could be
related to
https://issues.jboss.org/browse/RESTEASY-2084. Basically, we were not
automatically registering @Provider annotated filters before; here the client request
filter is automatically registered when building up any client and it creates and uses a
new client in its filter() method, which seems to result in the loop.
We'll investigate this properly, but perhaps you can work around this in your
Authenticator code (in a custom way checking if you've been called already for the
current request or having the client filter registered programmatically in the client
where needed instead of annotating if with @Provider).
StackOverflowError is thrown when invoking a REST end-point, with
ClientRequestFilter/ClientResponseFilter registered
---------------------------------------------------------------------------------------------------------------------
Key: WFLY-12191
URL:
https://issues.jboss.org/browse/WFLY-12191
Project: WildFly
Issue Type: Bug
Components: REST
Affects Versions: 17.0.0.Final
Environment: Fedora 30, Oracle JDK 1.8.0_181
Reporter: Deny Wuysan
Assignee: Alessio Soldano
Priority: Major
Attachments: Authenticator.java, BatchManager.java, WFLY-12191.zip
Please find attached the two Java files corresponding to the error. When setting debugger
on line 50 for Authenticator.java, notice repetitive calls occurred, ONLY on Wildfly
17.0.0.Final.
Have re-tested this case on Wildfly 16.0.0.Final and the REST call made successfully.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)