You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Ioannis Mavroukakis (JIRA)" <ji...@apache.org> on 2011/01/24 12:39:46 UTC

[jira] Created: (CXF-3278) Invalid Enum passed in WebMethod results to a null object

Invalid Enum passed in WebMethod results to a null object
---------------------------------------------------------

                 Key: CXF-3278
                 URL: https://issues.apache.org/jira/browse/CXF-3278
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.3.2
            Reporter: Ioannis Mavroukakis


Given the following method

{code}
 @WebMethod
    public BaseResponse removeDepositLimits(
            @WebParam( name = SERVICE_AUTH ) @XmlElement( required = true ) final Authorisation auth ,
            @WebParam( name = TOKEN ) @XmlElement( required = true ) final String token ,
            @WebParam( name = "timeFrame" ) @XmlElement( required = true ) final DepositLimit.TimeFrame timeFrame )
{code}
when timeFrame is a value that's not in the TimeFrame enum, timeFrame is set to null, this should return an error to the invoker instead.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] [Resolved] (CXF-3278) Invalid Enum passed in WebMethod results to a null object

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-3278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-3278.
------------------------------

       Resolution: Won't Fix
    Fix Version/s: Invalid


This is really a JAXB issue.   For things JAXB doesn't understand, it usually just skips them of fills in the data with nulls.   CXF really just sees the null values.

In general, if you want full validation of the incoming XML, you would need to turn on the schema validation.


> Invalid Enum passed in WebMethod results to a null object
> ---------------------------------------------------------
>
>                 Key: CXF-3278
>                 URL: https://issues.apache.org/jira/browse/CXF-3278
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.3.2
>            Reporter: Ioannis Mavroukakis
>             Fix For: Invalid
>
>
> Given the following method
> {code}
>  @WebMethod
>     public BaseResponse removeDepositLimits(
>             @WebParam( name = SERVICE_AUTH ) @XmlElement( required = true ) final Authorisation auth ,
>             @WebParam( name = TOKEN ) @XmlElement( required = true ) final String token ,
>             @WebParam( name = "timeFrame" ) @XmlElement( required = true ) final DepositLimit.TimeFrame timeFrame )
> {code}
> when timeFrame is a value that's not in the TimeFrame enum, timeFrame is set to null, this should return an error to the invoker instead.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira