From dev-return-69336-archive-asf-public=cust-asf.ponee.io@myfaces.apache.org Thu Mar 15 13:53:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id DE493180649 for ; Thu, 15 Mar 2018 13:53:04 +0100 (CET) Received: (qmail 61873 invoked by uid 500); 15 Mar 2018 12:53:03 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 61481 invoked by uid 99); 15 Mar 2018 12:53:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2018 12:53:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id AA63AC0591 for ; Thu, 15 Mar 2018 12:53:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.391 X-Spam-Level: X-Spam-Status: No, score=-1.391 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_FAIL=0.919, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id h6gqZt-EjRo4 for ; Thu, 15 Mar 2018 12:53:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 312455F47B for ; Thu, 15 Mar 2018 12:53:01 +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 62A22E0110 for ; Thu, 15 Mar 2018 12:53:00 +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 1B26821493 for ; Thu, 15 Mar 2018 12:53:00 +0000 (UTC) Date: Thu, 15 Mar 2018 12:53:00 +0000 (UTC) From: =?utf-8?Q?Matthias_F=C3=BCssel_=28JIRA=29?= To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (TRINIDAD-2563) Trinidad with MyFaces leads to empty ajax-response when render="@all" is used MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Matthias F=C3=BCssel created TRINIDAD-2563: ----------------------------------------- Summary: Trinidad with MyFaces leads to empty ajax-response wh= en render=3D"@all" is used Key: TRINIDAD-2563 URL: https://issues.apache.org/jira/browse/TRINIDAD-2563 Project: MyFaces Trinidad Issue Type: Bug Affects Versions: 2.2.1-core Reporter: Matthias F=C3=BCssel Trindidad pvovides its own XmlHttpServletResponse for ajax requests. This r= esponse puts Tinidad's XmlOutput into its ResponseWriter chain which causes= everything written before a "" header to be thrown= away. I have no idea why. Trinidad's PartialViewContextImpl uses two different writer chains: * for "real" partial renderings, it uses its own PPResponseWriter -> XmlRe= sponseWriter -> ... . This combination creates a ""= header at the begin of the output, so everything works as expected. * for "render all" requests, it uses a standard PartialResponseWriter from= the JSF API. The PartialResponseWriter from MyFaces doesn't create any xml= header. So everything "written" will be ignored and the request returns a = completely empty response which causes a javascript error on the client. Options: * remove XmlOutput from XmlHttpServletResponse's writer chain or * use Trinidad's writer chain also for "render all" requests, as there is = no guarantee that PartialResponseWriter will use an xml header =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)