Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 497529CE9 for ; Wed, 15 Aug 2012 11:46:43 +0000 (UTC) Received: (qmail 82224 invoked by uid 500); 15 Aug 2012 11:46:43 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 82090 invoked by uid 500); 15 Aug 2012 11:46:41 -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 81653 invoked by uid 99); 15 Aug 2012 11:46:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 11:46:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0DE232C5BE0 for ; Wed, 15 Aug 2012 11:46:38 +0000 (UTC) Date: Wed, 15 Aug 2012 22:46:38 +1100 (NCT) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: <14287848.12713.1345031198057.JavaMail.jiratomcat@arcas> In-Reply-To: <1817410600.7342.1344950798225.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CXF-4473) PathParam null when @Path annotations are the same 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/CXF-4473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434990#comment-13434990 ] Sergey Beryozkin commented on CXF-4473: --------------------------------------- Hi - I can not reproduce with the tests. Can you please provide a simple war or maven based project ? > PathParam null when @Path annotations are the same > -------------------------------------------------- > > Key: CXF-4473 > URL: https://issues.apache.org/jira/browse/CXF-4473 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 2.5.4 > Environment: java version "1.6.0_24" > OpenJDK Runtime Environment (IcedTea6 1.11.3) (6b24-1.11.3-1ubuntu0.12.04.1) > OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) > Reporter: Chris Eineke > > For some reason, the JAX-RS runtime doesn't provide the value of a @GET-annotated method and @PathParam-annotated method parameter if another @PUT-annotated method with the same @ParamParam-annotated method parameter has the same @Path annotation: > @GET @Path("/users/{username}/foo") > public Foo getFoo( > @PathParam("username") String username) > @PUT @Path("/users/{username}/foo") > public Foo setFoo( > @PathParam("username") String username, > Foo foo) > The runtime correctly invokes the first method for a GET. If I change the last path segment of the first method to anything but "foo", the runtime will provide the method parameter properly, but if I keep them the same the value of username will always be null. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira