Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 83878 invoked from network); 20 Oct 2004 08:03:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Oct 2004 08:03:04 -0000 Received: (qmail 20875 invoked by uid 500); 20 Oct 2004 08:02:57 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 20804 invoked by uid 500); 20 Oct 2004 08:02:56 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 20786 invoked by uid 99); 20 Oct 2004 08:02:56 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [195.28.83.3] (HELO fwlin.asset.sk) (195.28.83.3) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 20 Oct 2004 01:02:55 -0700 Received: from localhost (fwlin [127.0.0.1]) by fwlin.asset.sk (Postfix) with ESMTP id 647B75A1C7 for ; Wed, 20 Oct 2004 10:05:07 +0200 (CEST) Received: from fwlin.asset.sk ([127.0.0.1]) by localhost (fwlin [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14720-10 for ; Wed, 20 Oct 2004 10:05:06 +0200 (CEST) Received: from s2-ba.asset-internal (s2-ba.asset-internal [172.16.51.1]) by fwlin.asset.sk (Postfix) with ESMTP id 8008D5A1C1 for ; Wed, 20 Oct 2004 10:05:06 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: [portal] Upload not working for JSR168 portlets in Cocoon portal Date: Wed, 20 Oct 2004 10:02:51 +0200 Message-ID: <4C47FFB0CC6A2E4D92550B89B68FC7830170CA4B@s2-ba.asset-internal> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Portal navigation items Thread-Index: AcSQg3mxATbyvy5RR/6LOnG3+umV8wANsBlQCW/IebA= From: "DURDINA Michal" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, have you ever tried upload from within portlet in cocoon portal? I can't = get this working. I think it is because of the condition that is checking current request = content type (must be 'multipart/form-data' for upload) and the = implementation of portal servlet request wrapper = (ServletRequestImpl.java) that constantly returns "text/html". Take a look at condition in method getServletRequest() in https://svn.apache.org/repos/asf/cocoon/trunk/src/blocks/portal/java/org/= apache/cocoon/portlet/multipart/RequestFactory.java and method getContentType() in https://svn.apache.org/repos/asf/cocoon/trunk/src/blocks/portal/java/org/= apache/cocoon/portal/pluto/servlet/ServletRequestImpl.java What was the reason for ServletRequestImpl.java not to return content = type from actual request but always return "text/html"? May I submit a patch that will change ServletRequestImpl.java to return = actual this.request.getContentType() ? Thank you, Michal