Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 37109 invoked by uid 99); 21 Feb 2007 21:38:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2007 13:38:00 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [66.236.109.78] (HELO prod3.utilibyte.com) (66.236.109.78) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2007 13:37:49 -0800 Received: from marcus9ac010be (r1.devicemonkey.com [192.168.20.1]) by prod3.utilibyte.com (Postfix) with ESMTP id DCEB716BA41 for ; Wed, 21 Feb 2007 13:36:09 -0800 (PST) From: "Miguel" To: Subject: setURL + addCookie bug? Date: Wed, 21 Feb 2007 13:35:03 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-index: AcdWACWCbYBHe//sQaq/tGT5JI/lQg== Message-Id: <20070221213609.DCEB716BA41@prod3.utilibyte.com> X-Virus-Checked: Checked by ClamAV on apache.org When I use both setURL and addCookie my servlet does not see the cookie. Is this a bug in Cactus? Could someone else try to replicate it? Here's my beginXXX test: public void beginGetContent(WebRequest webRequest) { webRequest.setURL("localhost", "/xmlserver", "/rest/getcontent", "/5234", ""); webRequest.addCookie(new Cookie("localhost","SESSID",SID)); } I need to add /5234 to the URL I send my servlet located at /rest/getcontent. I also need to add a cookie. When I do both of these the servlet does not see the cookie. When I don't setURL the servlet does see the cookie. I was thinking this was a problem with the security domain of the cookie, which does seem to be enforced (by cactus?). My servlet is actually running on localhost:8080, so I tried putting localhost:8080 in setURL's servername and the Cookie's domain and all the different combinations. When I don't setURL and I look at the URL that the servelet receives using getRequestURL() it says "http://localhost:8080/xmlserver/ServletRedirector". So I tried putting that in my setURL and it still doesn't work. But I'm guessing that that's a symptom of whatever the problem is, i.e. ServletRedirector somehow has the cookies and when I set my own URL I can't get to the cookies?