Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 60242 invoked from network); 2 Mar 2010 21:05:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Mar 2010 21:05:06 -0000 Received: (qmail 87279 invoked by uid 500); 2 Mar 2010 21:04:58 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 87242 invoked by uid 500); 2 Mar 2010 21:04:58 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 87233 invoked by uid 99); 2 Mar 2010 21:04:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 21:04:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aryeh.friedman@gmail.com designates 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 21:04:48 +0000 Received: by fg-out-1718.google.com with SMTP id 22so28152fge.0 for ; Tue, 02 Mar 2010 13:04:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=hdRs7LoteU+gde7wTFAeapN0a4c2m9lSIcSuiwememA=; b=sNNzO9uKfTL7yEWkH0ulEW/58Ltaz4aDm8NT+crFxb4ZmjIazZIBTR9ej0aE35fwOa M3lUxKro9KQxXaNKGFjFS0AFqzp8zR8c/fxpmgstDbANiD1n13ZTZ2kjiyHOaGrmMEZe qwPbcLmggKwNACiF1EqQucePGIUDc7oeSueLc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=lDw1h0biGku+bs1V2xGLUiV1IGOWofa0en4ZFhW8cBjyIufTPietO5ki0V5OkyQisU gZ4V+mBnU5CygZZZwZJeGYgYNCPRCy5TSH+pSNdahI6rjdIHvrfPwkMIJGvgmNcM72kg KOrl6CsHjuWStq2POb012vMmgt6oQ8KnIEMzc= Received: by 10.87.20.13 with SMTP id x13mr10450538fgi.67.1267563867597; Tue, 02 Mar 2010 13:04:27 -0800 (PST) Received: from aryeh-desktop.istudentunion.com (ool-44c0cd7a.dyn.optonline.net [68.192.205.122]) by mx.google.com with ESMTPS id 14sm3190426fxm.5.2010.03.02.13.04.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Mar 2010 13:04:26 -0800 (PST) Message-ID: <4B8D7D59.7030208@gmail.com> Date: Tue, 02 Mar 2010 16:04:25 -0500 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.23 (X11/20100120) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: unified doXXX() References: <4B89CE2A.3000104@gmail.com> <4B8A8B17.2050200@pidster.com> <4B8B744C.9080608@gmail.com> <4B8BA461.10906@apache.org> <4B8CB569.3070507@gmail.com> <4B8D5384.3060400@christopherschultz.net> <4B8D6511.3070104@gmail.com> <4B8D78A6.7010001@christopherschultz.net> <4B8D79A4.6080604@gmail.com> <4B8D7BE0.5060601@christopherschultz.net> In-Reply-To: <4B8D7BE0.5060601@christopherschultz.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Christopher Schultz wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Aryeh, > > On 3/2/2010 3:48 PM, Aryeh M. Friedman wrote: > >> Christopher Schultz wrote: >> >> >>> Is this a new client, or just a new data format? Mark's suggestion that >>> you may be using POST without the proper Content-Type would result in >>> getting null for this parameter (because Tomcat will not parse it for >>> you). If this is the case, you should either fix the new client to use >>> the proper Content-Type, or fall-back to reading and parsing the request >>> body manually when these requirements are not met. >>> >>> >> New format same frontend client code which does use the proper content >> type. (the content type is defined at a lower level then the format and >> that code has not changed [using firebug on firefox confirms that fact]) >> > > Hmm. > > So, POST + application/x-www-form-urlencoded yields a null parameter > with your new payload? > > I know this sounds silly, but we're getting down to the > grasping-at-straws level, here, so bear with me: have you checked to see > that your request body is actually in the correct format (that is, > urlencoded, etc.)? I haven't looked at the Tomcat code, but Tomcat might > give up if the request body is not parsable. > > Have you tried calling request.getInputStream and dumping the request > body when the parameter is null? That might give you some indication of > what's happening. > The client does url encode in addition to translating any chars that are used either by tomcat and/or or app to decode the reaquest (namely = is translated to ^, comma to #, right/left parens to @ and $ respectivally) then I use javascripts "escape(string)" method to url encode it.... the app by default uses post but if I cut and paste the resulting payload into a GET and pass it to the app it works fine (i.e. the app uses POST but I do manual testing with GET) --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org