You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jim Ma (JIRA)" <ji...@apache.org> on 2016/04/07 08:36:25 UTC
[jira] [Commented] (CXF-6847) Return automatic response if no
method annotated with OPTIONS.
[ https://issues.apache.org/jira/browse/CXF-6847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15229780#comment-15229780 ]
Jim Ma commented on CXF-6847:
-----------------------------
Hi Sergey, sorry for late response. I finally get time today for this issue. I wrote some tests and it turns out option method doesn't work as expected when we set keep.subresource.candidates to true. It requires a check to force keep.subresource.candidates flag to false when http method is OPTIONS, otherwise it returns 404.
> Return automatic response if no method annotated with OPTIONS.
> --------------------------------------------------------------
>
> Key: CXF-6847
> URL: https://issues.apache.org/jira/browse/CXF-6847
> Project: CXF
> Issue Type: Task
> Affects Versions: 3.1.5
> Reporter: Jim Ma
> Fix For: 3.2.0
>
>
> From JAXRS 2.0 Spec section 3.5, it requires the following behavior .
> On receipt of an OPTIONS request an implementation MUST either:
> 1. Call a method annotated with a request method designator for OPTIONS or, if none present,
> 2. Generate an automatic response using the metadata provided by the JAX-RS annotations on the match-
> ing class and its methods.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)