Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 92271 invoked from network); 16 Jan 2010 06:42:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jan 2010 06:42:33 -0000 Received: (qmail 33366 invoked by uid 500); 16 Jan 2010 06:42:29 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 33192 invoked by uid 500); 16 Jan 2010 06:42:28 -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 33181 invoked by uid 99); 16 Jan 2010 06:42:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Jan 2010 06:42:28 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of travis.beech@gmail.com designates 209.85.211.188 as permitted sender) Received: from [209.85.211.188] (HELO mail-yw0-f188.google.com) (209.85.211.188) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Jan 2010 06:42:19 +0000 Received: by ywh26 with SMTP id 26so1128533ywh.12 for ; Fri, 15 Jan 2010 22:41:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:mime-version:content-type:x-mailer:thread-index :content-language; bh=cEUpj+N43XXcBUsYnFpvm9duxA6XcP9XCwldBAQajv4=; b=cx+ZD0bDTW+sKcyBXIhilOlB59l9ws5Evh7TPIshO60huGrPTllGkQDQrF4si5vIW1 L9zCO2qCtq75H4hZpGHYjnvDb0XtAVAKhlufMMoasIs89G3byyQuSMuMmSOX3tfa5kt/ bq63Q2MptnEjKLxkVWBPDLAei3WQLjaW9r2t4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:content-language; b=uyQoWdDBaPOGzhSSNM19jQsEr/gfhFFDSckjX5ZwbPnE8joxj+KQHoRU5G17eWxcvQ LGAI62OdbETDsyhXQ1NzkbPUqX10YgYfwqLejxhfFad4rx9NbiRmKp/WSiak1qD75YRp GqxBeIbn6rpcsDwo0/zLz2A0h+PK/A43+KadI= Received: by 10.101.138.20 with SMTP id q20mr5850169ann.160.1263624119020; Fri, 15 Jan 2010 22:41:59 -0800 (PST) Received: from WIN702 (76-233-207-176.lightspeed.frokca.sbcglobal.net [76.233.207.176]) by mx.google.com with ESMTPS id 13sm1460656gxk.13.2010.01.15.22.41.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 15 Jan 2010 22:41:58 -0800 (PST) From: Travis Beech To: Subject: Tomcat 6.0.20 - Workaround for reading the value of a cookie with special characters Date: Fri, 15 Jan 2010 22:41:59 -0800 Message-ID: <4b515fb6.0d0bca0a.6667.ffff82a0@mx.google.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0008_01CA9633.F4485500" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcqWdwDhg4bIk/LeSq+w2ouilifznw== Content-Language: en-us ------=_NextPart_000_0008_01CA9633.F4485500 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit All, I am trying to read the value of a cookie String cookievalue = cookie.getValue(); where the value itself contains the equal sign, i.e. SESSIONID=1234567890. We were using Tomcat 6.0.14 which based on the code sample above the value of cookievalue would be the string SESSIONID=1234567890. The issue that I am now encountering in Tomcat 6.0.20 is that cookie.getValue() is truncating the resultant string at the equal sign and only returns SESSIONID. I realize now after some searching on the internet that our cookie does not conform to a set standard and that the Tomcat HttpRequest class is operating as designed in this instance. Unfortunately, our cookie is set by my organization and as a developer I have no control over how our cookie is being set. Are there any workarounds available that will retrieve the entire string (SESSIONID=1234567890)? Thank you in advance, Travis Beech ------=_NextPart_000_0008_01CA9633.F4485500--