cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-6340) Return value of AsyncResponseImpl.cancel() not follow JAXRS 2.0 javadoc
Date Thu, 09 Apr 2015 11:16:12 GMT

     [ https://issues.apache.org/jira/browse/CXF-6340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sergey Beryozkin resolved CXF-6340.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.5
                   3.1.0
         Assignee: Sergey Beryozkin

> Return value of AsyncResponseImpl.cancel() not follow JAXRS 2.0 javadoc
> -----------------------------------------------------------------------
>
>                 Key: CXF-6340
>                 URL: https://issues.apache.org/jira/browse/CXF-6340
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.0.4
>            Reporter: Wei Zhang
>            Assignee: Sergey Beryozkin
>             Fix For: 3.1.0, 3.0.5
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> According to JAX-RS2.0 javadoc:
> Invoking a cancel(...) method multiple times to cancel request processing has the same
effect as canceling the request processing only once. Invoking a cancel(...) method on an
asynchronous response instance that has already been cancelled or resumed has no effect and
the method call is ignored while returning true, in case the request has been cancelled previously.

> But current implementation of AsyncResponseImpl.cancel() return false when response instance
has already been cancelled or resumed.
> In method doCancel, found:
>     private synchronized boolean doCancel(String retryAfterHeader) {
>         if (!isSuspended()) {
>             return false;        



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message