Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 6645 invoked from network); 4 Apr 2003 19:36:49 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 4 Apr 2003 19:36:49 -0000 Received: (qmail 5134 invoked by uid 97); 4 Apr 2003 19:38:44 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 5127 invoked from network); 4 Apr 2003 19:38:44 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 4 Apr 2003 19:38:44 -0000 Received: (qmail 4195 invoked by uid 500); 4 Apr 2003 19:36:17 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 4162 invoked from network); 4 Apr 2003 19:36:16 -0000 Received: from prv-mail20.provo.novell.com (137.65.81.122) by daedalus.apache.org with SMTP; 4 Apr 2003 19:36:16 -0000 Received: from INET-PRV-MTA by prv-mail20.provo.novell.com with Novell_GroupWise; Fri, 04 Apr 2003 12:36:20 -0700 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.0 Date: Fri, 04 Apr 2003 12:36:08 -0700 From: "Jeff Tulley" To: Subject: Re: [Patch] Coyote losing parameters across form login (wasRe: Connectorissues) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_A1FE1FA4.1D7C0151" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --=_A1FE1FA4.1D7C0151 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline One more, .java is stripped as well, it appears. This is the AddParametersTest.java mentioned below. It is now AddParametersTest.txt Jeff Tulley (jtulley@novell.com) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com >>> JTULLEY@novell.com 4/4/03 12:33:26 PM >>> One more try, all files as .txt What is the best way to send a .zip file? Actually, I've attached the file that was in the zip as AddParametersTest.java It should go in j-t-c/util/test/org/apache/tomcat/util/http Nothing from /test down currently exists in the util dir. It looks like my previous submissions on this list also did not show up. I should have checked more carefully. I've also attached my patch for the minor type in SoTask.java Sorry for the mess. Jeff Tulley (jtulley@novell.com) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com >>> remm@apache.org 4/4/03 12:17:48 PM >>> Jeff Tulley wrote: > Which? All of them? I had 3 attachments with the extension ".patch" (I > could rename to .txt, though .patch has worked in the past I thought). > And, 1 zip file that I renamed to test.zip.txt > > Please let me know which if any were visible, and the best way to send > a zip file. The .zip is not valid, and the 3 other attachements are not there. Remy --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org --=_A1FE1FA4.1D7C0151 Content-Type: text/plain; name="AddParametersTest.txt" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="AddParametersTest.txt" /* * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowlegement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * . * * [Additional notices, if required by prior licensing conditions] * */ package org.apache.tomcat.util.http; import java.util.Enumeration; import junit.framework.Assert; import junit.framework.TestCase; public class AddParametersTest extends TestCase { /** * Constructor for AddParametersTest. * @param arg0 */ public AddParametersTest(String arg0) { super(arg0); } public static void main(String[] args) { junit.textui.TestRunner.run(AddParametersTest.class); } public void testAddParameterValuesNullKey() { Parameters params = new Parameters(); Enumeration preEnum = params.getParameterNames(); while (preEnum.hasMoreElements()) { Assert.fail("Should have been empty"); } params.addParameterValues(null, new String[] {"Some Value"}); Enumeration afterEnum = params.getParameterNames(); while (afterEnum.hasMoreElements()) { Assert.fail("Should have been empty"); } } public void testAddNewParameterValues() { Parameters params = new Parameters(); Enumeration preEnum = params.getParameterNames(); while (preEnum.hasMoreElements()) { Assert.fail("Should have been empty"); } params.addParameterValues("SomeKey", new String[] {"Some Value"}); Enumeration afterEnum = params.getParameterNames(); while (afterEnum.hasMoreElements()) { String curName = (String)afterEnum.nextElement(); Assert.assertEquals("added Elem Name", "SomeKey", curName); Assert.assertEquals("added Elem Value", "Some Value", params.getParameterValues(curName)[0]); } } public void testAddAdditonalParameterValues() { Parameters params = new Parameters(); Enumeration preEnum = params.getParameterNames(); while (preEnum.hasMoreElements()) { Assert.fail("Should have been empty"); } params.addParameterValues("SomeKey", new String[] {"Some Value"}); params.addParameterValues("SomeKey", new String[] {"Some Other Value"}); params.addParameterValues("SomeKey", new String[] {"Some Third Value"}); Enumeration afterEnum = params.getParameterNames(); while (afterEnum.hasMoreElements()) { String curName = (String)afterEnum.nextElement(); Assert.assertEquals("added Elem Name", "SomeKey", curName); Assert.assertEquals("added Elem Value", "Some Value", params.getParameterValues(curName)[0]); Assert.assertEquals("added Elem Value", "Some Other Value", params.getParameterValues(curName)[1]); Assert.assertEquals("added Elem Value", "Some Third Value", params.getParameterValues(curName)[2]); } } public void testAddAdditonalParameterMultiValued() { Parameters params = new Parameters(); Enumeration preEnum = params.getParameterNames(); while (preEnum.hasMoreElements()) { Assert.fail("Should have been empty"); } params.addParameterValues("SomeKey", new String[] {"Some Value"}); params.addParameterValues("SomeKey", new String[] {"Some Other Value", "Some Third Value"}); Enumeration afterEnum = params.getParameterNames(); while (afterEnum.hasMoreElements()) { String curName = (String)afterEnum.nextElement(); Assert.assertEquals("added Elem Name", "SomeKey", curName); Assert.assertEquals("added Elem Value", "Some Value", params.getParameterValues(curName)[0]); Assert.assertEquals("added Elem Value", "Some Other Value", params.getParameterValues(curName)[1]); Assert.assertEquals("added Elem Value", "Some Third Value", params.getParameterValues(curName)[2]); } } } --=_A1FE1FA4.1D7C0151 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org --=_A1FE1FA4.1D7C0151--