[jira] [Commented] (CXF-9017) Regression in proxy-based restful client

2024-05-27 Thread Andriy Redko (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-9017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17849716#comment-17849716
 ] 

Andriy Redko commented on CXF-9017:
---

It seems like, thanks [~iiliev2] , I am closing it as a duplicate

> Regression in proxy-based restful client
> 
>
> Key: CXF-9017
> URL: https://issues.apache.org/jira/browse/CXF-9017
> Project: CXF
>  Issue Type: Bug
>Reporter: Ivan Iliev
>Priority: Critical
>
> The memory leak fix introduced in 
> https://issues.apache.org/jira/browse/CXF-8946 breaks the way the 
> ClientProxyImpl works. It passes its ClientConfiguration down to sub-proxies. 
> When those sub-proxies get garbage collected, that configuration gets closed. 
> One of the objects that are closed is AbstractConduitSelector -> conduits.
> After that, any newly created sub-proxies will have misconfigured clients. 
> For example, we are configuring TLSClientParameters on the conduit of the 
> root, which gets wiped out and therefore the new child clients can no longer 
> connect.
> {code:java}
> API api = JAXRSClientFactory.create(endpoint, , getCxfProviders(), 
> true); // root proxy
> configure(api);//add TLSClientParameters
> SomeResource s = api.getSomeResource(); // sub-proxy
> 
> 
> SomeOtherResource s2 = api.get(); //broken{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (CXF-9017) Regression in proxy-based restful client

2024-05-27 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko resolved CXF-9017.
---
Resolution: Duplicate

> Regression in proxy-based restful client
> 
>
> Key: CXF-9017
> URL: https://issues.apache.org/jira/browse/CXF-9017
> Project: CXF
>  Issue Type: Bug
>Reporter: Ivan Iliev
>Priority: Critical
>
> The memory leak fix introduced in 
> https://issues.apache.org/jira/browse/CXF-8946 breaks the way the 
> ClientProxyImpl works. It passes its ClientConfiguration down to sub-proxies. 
> When those sub-proxies get garbage collected, that configuration gets closed. 
> One of the objects that are closed is AbstractConduitSelector -> conduits.
> After that, any newly created sub-proxies will have misconfigured clients. 
> For example, we are configuring TLSClientParameters on the conduit of the 
> root, which gets wiped out and therefore the new child clients can no longer 
> connect.
> {code:java}
> API api = JAXRSClientFactory.create(endpoint, , getCxfProviders(), 
> true); // root proxy
> configure(api);//add TLSClientParameters
> SomeResource s = api.getSomeResource(); // sub-proxy
> 
> 
> SomeOtherResource s2 = api.get(); //broken{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CXF-9017) Regression in proxy-based restful client

2024-05-27 Thread Ivan Iliev (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-9017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17849633#comment-17849633
 ] 

Ivan Iliev commented on CXF-9017:
-

Yes, it seems like it, although in that bug they are not using the proxy-based 
client. Looks like all types of clients are impacted then.

> Regression in proxy-based restful client
> 
>
> Key: CXF-9017
> URL: https://issues.apache.org/jira/browse/CXF-9017
> Project: CXF
>  Issue Type: Bug
>Reporter: Ivan Iliev
>Priority: Critical
>
> The memory leak fix introduced in 
> https://issues.apache.org/jira/browse/CXF-8946 breaks the way the 
> ClientProxyImpl works. It passes its ClientConfiguration down to sub-proxies. 
> When those sub-proxies get garbage collected, that configuration gets closed. 
> One of the objects that are closed is AbstractConduitSelector -> conduits.
> After that, any newly created sub-proxies will have misconfigured clients. 
> For example, we are configuring TLSClientParameters on the conduit of the 
> root, which gets wiped out and therefore the new child clients can no longer 
> connect.
> {code:java}
> API api = JAXRSClientFactory.create(endpoint, , getCxfProviders(), 
> true); // root proxy
> configure(api);//add TLSClientParameters
> SomeResource s = api.getSomeResource(); // sub-proxy
> 
> 
> SomeOtherResource s2 = api.get(); //broken{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)