Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 28854 invoked from network); 8 Dec 2009 10:12:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 10:12:40 -0000 Received: (qmail 8452 invoked by uid 500); 8 Dec 2009 10:12:40 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 8400 invoked by uid 500); 8 Dec 2009 10:12:40 -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 8390 invoked by uid 99); 8 Dec 2009 10:12:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 10:12:40 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 10:12:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1B93D234C052 for ; Tue, 8 Dec 2009 02:12:18 -0800 (PST) Message-ID: <1387344815.1260267138097.JavaMail.jira@brutus> Date: Tue, 8 Dec 2009 10:12:18 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Subject: [jira] Reopened: (CXF-2471) The HttpServletResponse statuses is lost after is set in a service implementation (where the response is injected through @Context). In-Reply-To: <1919482113.1255515031309.JavaMail.jira@brutus> 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-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Beryozkin reopened CXF-2471: ----------------------------------- Can you confirm please it's been now fixed with the latest snapshot ? http://repository.apache.org/snapshots/org/apache/cxf/apache-cxf/2.2.6-SNAPSHOT/ > The HttpServletResponse statuses is lost after is set in a service implementation (where the response is injected through @Context). > ------------------------------------------------------------------------------------------------------------------------------------ > > Key: CXF-2471 > URL: https://issues.apache.org/jira/browse/CXF-2471 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 2.2.4 > Reporter: Vincenzo Vitale > Assignee: Sergey Beryozkin > Fix For: 2.2.5, 2.3 > > > After injecting the the HttpServletResponse with the @Context annotation: > @POST > @Path("/login") > public Feed login(@FormParam("username") String username, > @FormParam("password") String password, > @Context HttpServletResponse httpServletResponse) > and than setting a status code (for example 401 if the user is not authorized), the status code get lost. > See here for workarounds and more detials: > http://www.nabble.com/Setting-the-status-code-in-the-injected-(via-the-jax-rs-@context)--HttpServletResponse-td25883621.html -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.