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

Colm O hEigeartaigh closed CXF-6812.
------------------------------------

> WebTargetImpl should always check if client is closed first
> -----------------------------------------------------------
>
>                 Key: CXF-6812
>                 URL: https://issues.apache.org/jira/browse/CXF-6812
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.1.5
>            Reporter: Jim Ma
>            Assignee: Jim Ma
>             Fix For: 3.1.6, 3.0.9, 3.2.0
>
>
> org.apache.cxf.jaxrs.client.spec.Clientimpl$WebClientImpl#resolveTemplatesFromEncoded(Map<String,
>  Object> templatesMap) method should always check if client is closed first. 
> If the input templatesMap is empty , even the client is closed it still 
> returns this object:
> {code}
>         @Override
>         public WebTarget resolveTemplatesFromEncoded(Map<String, Object> 
> templatesMap) {
>             checkClosed();
>             checkNullMap(templatesMap);
>             if (templatesMap.isEmpty()) {
>                 return this;
>             }
>             return 
> newWebTarget(getUriBuilder().resolveTemplatesFromEncoded(templatesMap));
>         }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to