Return-Path: X-Original-To: apmail-incubator-jspwiki-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-jspwiki-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BAD6AE30A for ; Thu, 31 Jan 2013 19:51:16 +0000 (UTC) Received: (qmail 7553 invoked by uid 500); 31 Jan 2013 19:51:15 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 7525 invoked by uid 500); 31 Jan 2013 19:51:15 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 7442 invoked by uid 99); 31 Jan 2013 19:51:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2013 19:51:15 +0000 Date: Thu, 31 Jan 2013 19:51:15 +0000 (UTC) From: "Paul Cowan (JIRA)" To: jspwiki-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (JSPWIKI-759) Resin 4 Compatibility 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/JSPWIKI-759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Cowan updated JSPWIKI-759: ------------------------------- Environment: OSX 10.8.2, Oracle Java JDK 1.7.0_09, Resin Pro 4.0.34 was: OSX 10.8.2, Oracle Java JDK 1.7.0_09 Summary: Resin 4 Compatibility (was: Resin 4 Compatability) > Resin 4 Compatibility > --------------------- > > Key: JSPWIKI-759 > URL: https://issues.apache.org/jira/browse/JSPWIKI-759 > Project: JSPWiki > Issue Type: Improvement > Components: Servlet Container/Java compatibility > Affects Versions: 2.9 > Environment: OSX 10.8.2, Oracle Java JDK 1.7.0_09, Resin Pro 4.0.34 > Reporter: Paul Cowan > Attachments: patch.txt > > > I am an engineer for Caucho on the Resin Application Server, and was testing JSPWiki on Resin version 4.0.34. I would like to submit 2 fixes to enable JSPWiki to run better on Resin 4: > #1. JSPWiki is calling getOutputStream after getWriter(). The servlet spec dictates we throw IllegalStateException for this situation. I see JSPWiki already has handling in UtilJ2eeCompat to use an OutputStream rather than a Writer depending on the container. The Resin check should have "useStream = true". > #2. As a consequence of #1, JSPWiki serves empty content. This is due to buffering inside the PrintWriter used by WikiJSPFilter.ByteArrayResponseWrapper. The PrintWriter is never flushed when toString() is called on ByteArrayResponseWrapper. (This may not be a Resin specific issue.) > I will attempt to attach a patch file to this bug report containing my fix to WikiJSPFilter.java. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira