Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E5DA4200BD4 for ; Fri, 16 Dec 2016 14:46:42 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E4617160B24; Fri, 16 Dec 2016 13:46:42 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 11975160AF6 for ; Fri, 16 Dec 2016 14:46:41 +0100 (CET) Received: (qmail 88929 invoked by uid 500); 16 Dec 2016 13:46:41 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 88908 invoked by uid 99); 16 Dec 2016 13:46:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2016 13:46:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 47520C00E7 for ; Fri, 16 Dec 2016 13:46:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.003 X-Spam-Level: X-Spam-Status: No, score=-0.003 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=teamwpc.onmicrosoft.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id rXVRTjZu8hpp for ; Fri, 16 Dec 2016 13:46:38 +0000 (UTC) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0091.outbound.protection.outlook.com [104.47.0.91]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 3F8E561F01 for ; Fri, 16 Dec 2016 13:46:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=TEAMWPC.onmicrosoft.com; s=selector1-worldprogramming-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=9brQysBzMt1qxWe7ekkWYDzCwyMhAwbpcWQ2iIefL8A=; b=eA2W3kc7LzE2tbLYio29IvU8L9UFolxlAHyAPIV11Ri/g/611+rQBX3tkQ2sHFZQtgy9pC5c0Xw1zyFgy5oZRORK7v0WXsAwqt9f+pYf5irZaxiwhnr6fBdhYzOoq3I7Oh7aiClxiug1PV1++s5OiLEOCyQ0UdDjWqQsuqR1VxY= Received: from HE1PR0502MB2906.eurprd05.prod.outlook.com (10.175.34.14) by HE1PR0502MB2907.eurprd05.prod.outlook.com (10.175.34.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.771.8; Fri, 16 Dec 2016 13:46:36 +0000 Received: from HE1PR0502MB2906.eurprd05.prod.outlook.com ([10.175.34.14]) by HE1PR0502MB2906.eurprd05.prod.outlook.com ([10.175.34.14]) with mapi id 15.01.0771.014; Fri, 16 Dec 2016 13:46:35 +0000 From: Tom Quarendon To: "users@felix.apache.org" Subject: RE: POST requests being processed twice by felix HTTP Thread-Topic: POST requests being processed twice by felix HTTP Thread-Index: AdJXm4K5gnXl1MlsRsWnbGnBRZKAZwAA/nuAAAAQJtA= Date: Fri, 16 Dec 2016 13:46:35 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=tom.quarendon@worldprogramming.com; x-originating-ip: [87.83.8.229] x-ms-office365-filtering-correlation-id: 6c818e07-62b5-4473-8801-08d425b9f3f9 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:HE1PR0502MB2907; x-microsoft-exchange-diagnostics: 1;HE1PR0502MB2907;7:XH/R+et8EB9twiOc65UKNDbXKbqyqBPDG2LSLUn5WjmSNSQ+fRBz1VxQNpi9J9aU+L/Cra8R3CKK/lxtlsdvoWafkrSAB1U7jnPxWnOvqSuIktsgVgSQTX6KbPavfQE5NwIfjg7rJ8ZnMeQMyMW37NheNjWHwdqQgFTQdgnP2SjQaEmxjLyRvEI5YRKLzsaXgM3DwUd2oHASc65LVTc17gXVVHjIvNR3KGXsbUunRu6EjS+7mOIPl9rViTg6HhkfhBly2Vfci8sW8Y6vU66j8+PikbEP7PhuhByL6GM8pBmyflt3KqlTMd44pGkwz9YSr+VrfufhUHWH8bvemba4JJaNCV3BhPfBcPxDjY6A4FzhWIkRo+eN9bMdCTOWAUU+PK2Eh03AkCqWs3LhLbCJWpX0+dBorkBBbUCGzeMxDNglU2Cpqnvelpv57MGLwSaY6fhzZV+AfjwneF4sl1wT9w== x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(5213294742642); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(6072148);SRVR:HE1PR0502MB2907;BCL:0;PCL:0;RULEID:;SRVR:HE1PR0502MB2907; x-forefront-prvs: 01583E185C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(39450400003)(189002)(199003)(2351001)(9686002)(2900100001)(25786008)(3846002)(110136003)(50986999)(54356999)(107886002)(74316002)(229853002)(76176999)(81156014)(2906002)(6436002)(7696004)(77096006)(8676002)(106356001)(6506006)(92566002)(33656002)(5660300001)(81166006)(305945005)(105586002)(2501003)(97736004)(38730400001)(1730700003)(2950100002)(76576001)(6916009)(8936002)(68736007)(7736002)(66066001)(101416001)(189998001)(3280700002)(122556002)(86362001)(102836003)(6116002)(3660700001)(450100001)(5640700003);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR0502MB2907;H:HE1PR0502MB2906.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: worldprogramming.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: worldprogramming.com X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Dec 2016 13:46:35.7055 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e74cacd3-9c6e-4b9e-9cc5-8c83d264a79d X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0502MB2907 archived-at: Fri, 16 Dec 2016 13:46:43 -0000 > If that is not the case setting a break point in the DispatcherServlet fr= om Felix will tell you whether the request is called twice from outside the= Felix http implementation (Jetty in that case then) or now. The implication of this (I haven't looked into the felix code at this point= , and actually all of the source links for the HTTP projects on the felix d= ownload page seem to be broken, I've tried numerous mirrors) is that there = is a single servlet that you register with jetty, and then you manage distr= ibuting the request to the relevant servlet? We are as sure as we can be that there is only one HTTP request made, and t= wo calls to the server. We've turned on Jetty tracing and logged our own se= rvlet and this appears to be the case. Up until recently we haven't had a r= eliable way to reproduce it, but the technique of editing the code in a deb= ug session so that you can force it to redeploy the component while it's in= the middle of processing the request appears to work. Since my original post, I realise that in some ways it's not interesting wh= y the problem occurs, or actually "solving" it (clearly, to me, POST being = processed twice is a bug somewhere). Instead what we want is to make our tests reliable. And I think what this m= eans is that we need a way of waiting until everything is shut down after e= ach test. If we had a way of detecting whether all servlets had been deregi= stered, then that might help. We suspect that although our test has finishe= d, background reconfiguration occurs within OSGi, and this is still happeni= ng when the next test starts. It then makes a request that gets handled by= a servlet that is in the process of being shut down. If we could avoid all= of that, and ensure that we go back to a clean slate each time, that's pro= bably what we really need. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org