Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D394180F6 for ; Thu, 17 Dec 2015 17:56:47 +0000 (UTC) Received: (qmail 28113 invoked by uid 500); 17 Dec 2015 17:56:47 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 28045 invoked by uid 500); 17 Dec 2015 17:56:47 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 27788 invoked by uid 99); 17 Dec 2015 17:56:47 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2015 17:56:47 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EC2752C14F6 for ; Thu, 17 Dec 2015 17:56:46 +0000 (UTC) Date: Thu, 17 Dec 2015 17:56:46 +0000 (UTC) From: "Aleksandr Mashchenko (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (WW-4545) Setting status code in HttpHeaders will be ignored 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/WW-4545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aleksandr Mashchenko resolved WW-4545. -------------------------------------- Resolution: Fixed > Setting status code in HttpHeaders will be ignored > -------------------------------------------------- > > Key: WW-4545 > URL: https://issues.apache.org/jira/browse/WW-4545 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - REST > Affects Versions: 2.5 > Reporter: Johannes Geppert > Labels: rest, struts2 > Fix For: 2.3.25, 2.5 > > Attachments: WW-4545.patch > > > Setting the status code for validation has no effect. > {code:xml} > > {code} > Inside of the RestWorkflowInterceptor this status code is used: > {code:java} > HttpHeaders info = new DefaultHttpHeaders() > .disableCaching() > .renderResult(method) > .withStatus(validationFailureStatusCode); > {code} > But the result has still a 200 success result. -- This message was sent by Atlassian JIRA (v6.3.4#6332)