[
https://issues.apache.org/jira/browse/CXF-3446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Beryozkin resolved CXF-3446.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.4
Assignee: Sergey Beryozkin
> InjectorUtils class goes to deep when it handles an enum value
> --------------------------------------------------------------
>
> Key: CXF-3446
> URL: https://issues.apache.org/jira/browse/CXF-3446
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS, Simple Frontend
> Affects Versions: 2.3.3
> Reporter: Mike Moor
> Assignee: Sergey Beryozkin
> Priority: Critical
> Fix For: 2.4, 2.3.4
>
> Original Estimate: 10m
> Remaining Estimate: 10m
>
> class: org.apache.cxf.jaxrs.utils.InjectionUtils
> method: public static void fillInValuesFromBean(Object bean, String baseName,
> MultivaluedMap<String, Object> values){
> line number: 869
> Problem:
> If the Object "bean" is a enum value, one of the methods is called
> getDeclaringClass(). This should be catched on this line as it is done for
> getClass().
> getDeclaringClass() will never contain query-params.
> should be:
> if (baseName.contains(propertyName) || "class".equals(propertyName) ||
> "declaringclass".equals(propertyName)) {
> continue;
> }
> This method is called by the ClientProxyImpl.handleQueries method.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira