From commits-return-33983-apmail-tomee-commits-archive=tomee.apache.org@tomee.apache.org Mon Feb 9 20:18:34 2015 Return-Path: X-Original-To: apmail-tomee-commits-archive@www.apache.org Delivered-To: apmail-tomee-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A884F10AA1 for ; Mon, 9 Feb 2015 20:18:34 +0000 (UTC) Received: (qmail 24925 invoked by uid 500); 9 Feb 2015 20:18:34 -0000 Delivered-To: apmail-tomee-commits-archive@tomee.apache.org Received: (qmail 24898 invoked by uid 500); 9 Feb 2015 20:18:34 -0000 Mailing-List: contact commits-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tomee.apache.org Delivered-To: mailing list commits@tomee.apache.org Received: (qmail 24889 invoked by uid 500); 9 Feb 2015 20:18:34 -0000 Delivered-To: apmail-openejb-commits@openejb.apache.org Received: (qmail 24886 invoked by uid 99); 9 Feb 2015 20:18:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2015 20:18:34 +0000 Date: Mon, 9 Feb 2015 20:18:34 +0000 (UTC) From: "Romain Manni-Bucau (JIRA)" To: commits@openejb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TOMEE-1510) CXF Continuations not working for REST services MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TOMEE-1510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14312794#comment-14312794 ] Romain Manni-Bucau commented on TOMEE-1510: ------------------------------------------- Hi Thorsten, thank you for the report, can you build a test to show this behavior please? (arquillian or whatever). Then your fix should be safe to apply. Also maybe check against 1.7.2-SNAPSHOT, this part was rewritten > CXF Continuations not working for REST services > ----------------------------------------------- > > Key: TOMEE-1510 > URL: https://issues.apache.org/jira/browse/TOMEE-1510 > Project: TomEE > Issue Type: Bug > Affects Versions: 1.7.1 > Reporter: Thorsten Meinl > > CXF Continuations for asynchronous REST requests are not working. You can suspend the current request but when you try to resume it, the original method will not be found. I debugged into the code and the bug seems to be in line 118 of org.apache.tomee.webservices.TomcatRsRegistry. The URL mapping as added both to the mapping wrapper (line 117) and the context itself. In line 117 the context root is correctly removed but in line 118 it isn't. Therefore the context has a mapping of e.g. "/my.context/rest/*" instead of the correct "/rest/*". > The problem does not become apparent on the intial request because there the URL mapping of the Connector is used to dispatch to the correct class and method and not the Context's mapping. The connector has the correct mapping (in addition to the wrong one), which was added by org.apache.catalina.connector.MapperListener.registerContext. However, when using continuations, only the context's mapping is consulted because it's an "internal" request. Due to the wrong mapping the "/" mapping is used in the end. > The fixed would be simple, just remove the context in line 118, too. I cannot judge if this has any side-effects, though. -- This message was sent by Atlassian JIRA (v6.3.4#6332)