You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andreas Sahlbach (Created) (JIRA)" <ji...@apache.org> on 2011/11/11 18:13:51 UTC
[jira] [Created] (CXF-3903) WADL contains wrong parameter names for
multipart/form-data
WADL contains wrong parameter names for multipart/form-data
-----------------------------------------------------------
Key: CXF-3903
URL: https://issues.apache.org/jira/browse/CXF-3903
Project: CXF
Issue Type: Bug
Components: JAX-RS
Affects Versions: 2.4.4
Reporter: Andreas Sahlbach
I have the following annotated REST function:
{code:java}
@POST
@Path("/umsinfo/profileid/{profileId}")
@Consumes("multipart/form-data")
public UmsInfo getUmsInfoByProfileId(@PathParam("profileId") String profileId,
@Multipart(value="includeCompany") Boolean includeCompany,
@Multipart(value="passwordToCheck") String passwordToCheck,
@Context UriInfo info)
{code}
and it produces the following relevant WADL entry:
{code:xml}
<resource path="/umsinfo/profileid/{profileId}">
<param name="profileId" style="template" type="xs:string"/>
<method name="POST">
<request>
<representation mediaType="multipart/form-data">
<param name="request" style="plain" type="xs:boolean"/>
</representation>
<representation mediaType="multipart/form-data">
<param name="request" style="plain" type="xs:string"/>
</representation>
</request>
<response>
<representation mediaType="application/octet-stream"/>
</response>
</method>
{code}
Please note that the param name is always "request". This is true for all multipart/form-data functions inside this WADL.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CXF-3903) WADL contains wrong parameter names
for multipart/form-data
Posted by "Sergey Beryozkin (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-3903.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.5.1
2.4.5
Assignee: Sergey Beryozkin
> WADL contains wrong parameter names for multipart/form-data
> -----------------------------------------------------------
>
> Key: CXF-3903
> URL: https://issues.apache.org/jira/browse/CXF-3903
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.4.4
> Reporter: Andreas Sahlbach
> Assignee: Sergey Beryozkin
> Fix For: 2.4.5, 2.5.1
>
>
> I have the following annotated REST function:
> {code:java}
> @POST
> @Path("/umsinfo/profileid/{profileId}")
> @Consumes("multipart/form-data")
> public UmsInfo getUmsInfoByProfileId(@PathParam("profileId") String profileId,
> @Multipart(value="includeCompany") Boolean includeCompany,
> @Multipart(value="passwordToCheck") String passwordToCheck,
> @Context UriInfo info)
> {code}
> and it produces the following relevant WADL entry:
> {code:xml}
> <resource path="/umsinfo/profileid/{profileId}">
> <param name="profileId" style="template" type="xs:string"/>
> <method name="POST">
> <request>
> <representation mediaType="multipart/form-data">
> <param name="request" style="plain" type="xs:boolean"/>
> </representation>
> <representation mediaType="multipart/form-data">
> <param name="request" style="plain" type="xs:string"/>
> </representation>
> </request>
> <response>
> <representation mediaType="application/octet-stream"/>
> </response>
> </method>
> {code}
> Please note that the param name is always "request". This is true for all multipart/form-data functions inside this WADL.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CXF-3903) WADL contains wrong parameter names
for multipart/form-data
Posted by "Sergey Beryozkin (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149688#comment-13149688 ]
Sergey Beryozkin commented on CXF-3903:
---------------------------------------
With the fix you will get
<resource path="/umsinfo/profileid/{profileId}">
<param name="profileId" style="template" type="xs:string"/>
<method name="POST">
<request>
<representation mediaType="multipart/form-data">
<param name="includeCompany" style="query" type="xs:boolean"/>
<param name="passwordToCheck" style="query" type="xs:string"/>
</representation>
</request>
</method>
</resource>
> WADL contains wrong parameter names for multipart/form-data
> -----------------------------------------------------------
>
> Key: CXF-3903
> URL: https://issues.apache.org/jira/browse/CXF-3903
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.4.4
> Reporter: Andreas Sahlbach
> Fix For: 2.4.5, 2.5.1
>
>
> I have the following annotated REST function:
> {code:java}
> @POST
> @Path("/umsinfo/profileid/{profileId}")
> @Consumes("multipart/form-data")
> public UmsInfo getUmsInfoByProfileId(@PathParam("profileId") String profileId,
> @Multipart(value="includeCompany") Boolean includeCompany,
> @Multipart(value="passwordToCheck") String passwordToCheck,
> @Context UriInfo info)
> {code}
> and it produces the following relevant WADL entry:
> {code:xml}
> <resource path="/umsinfo/profileid/{profileId}">
> <param name="profileId" style="template" type="xs:string"/>
> <method name="POST">
> <request>
> <representation mediaType="multipart/form-data">
> <param name="request" style="plain" type="xs:boolean"/>
> </representation>
> <representation mediaType="multipart/form-data">
> <param name="request" style="plain" type="xs:string"/>
> </representation>
> </request>
> <response>
> <representation mediaType="application/octet-stream"/>
> </response>
> </method>
> {code}
> Please note that the param name is always "request". This is true for all multipart/form-data functions inside this WADL.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira