You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2011/04/08 15:51:05 UTC

[jira] [Resolved] (CXF-3446) InjectorUtils class goes to deep when it handles an enum value

     [ 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