Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 21280 invoked from network); 10 Mar 2011 00:03:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Mar 2011 00:03:21 -0000 Received: (qmail 47935 invoked by uid 500); 10 Mar 2011 00:03:21 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 47912 invoked by uid 500); 10 Mar 2011 00:03:21 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 47903 invoked by uid 99); 10 Mar 2011 00:03:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2011 00:03:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2011 00:03:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6DDFD3A1E80 for ; Thu, 10 Mar 2011 00:02:59 +0000 (UTC) Date: Thu, 10 Mar 2011 00:02:59 +0000 (UTC) From: "Ben Noordhuis (JIRA)" To: issues@cxf.apache.org Message-ID: <414153747.9603.1299715379446.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Created: (CXF-3390) Field value from previous request is recycled when field is absent in new request MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Field value from previous request is recycled when field is absent in new request --------------------------------------------------------------------------------- Key: CXF-3390 URL: https://issues.apache.org/jira/browse/CXF-3390 Project: CXF Issue Type: Bug Components: JAX-RS Affects Versions: 2.4 Reporter: Ben Noordhuis Priority: Critical This was tested against 2.3.1 and HEAD. Consider this class: {code} @Path("/test") public class Test { @QueryParam("q") private String q; @GET public void test() { System.err.println(q); } } {code} Now consider this test case: {noformat} $ curl http://localhost:8080/test # prints "null" $ curl http://localhost:8080/test?q=foo # prints "foo" $ curl http://localhost:8080/test # prints "foo" ! {noformat} This is a serious bug because it leaks information. It's not specific to @QueryParam, the other annotations have the same problem. I discovered it in a resource that is used for authentication: after logging in once, I could log in again without providing a username and password! -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira