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 7510F200C47 for ; Thu, 30 Mar 2017 20:58:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 73A95160B8B; Thu, 30 Mar 2017 18:58:46 +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 BFAD4160B98 for ; Thu, 30 Mar 2017 20:58:45 +0200 (CEST) Received: (qmail 88145 invoked by uid 500); 30 Mar 2017 18:58:45 -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 88122 invoked by uid 99); 30 Mar 2017 18:58:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Mar 2017 18:58:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 775421AA2A5 for ; Thu, 30 Mar 2017 18:58:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Y0r0AeEZH5rf for ; Thu, 30 Mar 2017 18:58:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 104B75FC6D for ; Thu, 30 Mar 2017 18:58:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 846D3E0BD2 for ; Thu, 30 Mar 2017 18:58:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id E473021DDC for ; Thu, 30 Mar 2017 18:58:41 +0000 (UTC) Date: Thu, 30 Mar 2017 18:58:41 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-7249) Custom HTTP headers ignored in service responses when using MTOM with JAX-WS and JAXB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 30 Mar 2017 18:58:46 -0000 [ https://issues.apache.org/jira/browse/CXF-7249?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp updated CXF-7249: ----------------------------- Component/s: Transports > Custom HTTP headers ignored in service responses when using MTOM with JAX= -WS and JAXB > -------------------------------------------------------------------------= ------------ > > Key: CXF-7249 > URL: https://issues.apache.org/jira/browse/CXF-7249 > Project: CXF > Issue Type: Bug > Components: Transports > Affects Versions: 3.1.8 > Reporter: Panu H=C3=A4m=C3=A4l=C3=A4inen > > I have set up a CXF server endpoint (v. 3.1.8) using JAX-WS with JAXB dat= abinding and MTOM. Everything else works correctly but the custom HTTP head= ers that I add with an outbound interceptor to the response messages seem t= o disappear. The custom headers are in place for other than MTOM-enabled en= dpoint responses. I have followed the guidance (1) in my interceptor which = adds the headers ("prior to WRITE phase"). > I suspect the problem is in AttachmentOutInterceptor (2) as it does not r= espect the headers possibly specified by other interceptors ("root headers"= are always empty)? I guess the "root headers" should be initialized from t= he current message state. > I also tried (against the mentioned guidance) adding my interceptor after= AttachmentOutInterceptor (and also after AttachmentOutInterceptor#Attachme= ntOutEndingInterceptor) but it did not help. > 1) https://issues.apache.org/jira/browse/CXF-5573?focusedCommentId=3D1390= 7135&page=3Dcom.atlassian.jira.plugin.system.issuetabpanels:comment-tabpane= l#comment-13907135 > 2) https://github.com/apache/cxf/blob/cxf-3.1.8/core/src/main/java/org/ap= ache/cxf/interceptor/AttachmentOutInterceptor.java#L96 -- This message was sent by Atlassian JIRA (v6.3.15#6346)