Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 43735 invoked from network); 19 Mar 2006 00:09:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Mar 2006 00:09:34 -0000 Received: (qmail 91735 invoked by uid 500); 19 Mar 2006 00:09:30 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 91682 invoked by uid 500); 19 Mar 2006 00:09:30 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 91668 invoked by uid 99); 19 Mar 2006 00:09:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Mar 2006 16:09:30 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mkienenb@gmail.com designates 64.233.182.200 as permitted sender) Received: from [64.233.182.200] (HELO nproxy.gmail.com) (64.233.182.200) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Mar 2006 16:09:29 -0800 Received: by nproxy.gmail.com with SMTP id a4so595099nfc for ; Sat, 18 Mar 2006 16:09:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VnjqUvS9Uh32XauUmAq0Q1A7JV4AQX1hRc/PPnGWlllNoILYoKbyqQORzB3WpUWZhYzJ2p9INsA38ipS0HVEWy4WGfNOebpTpoMSbPfv6H2uiiyJFM7y9kl07BvvrNegqtVEBVOkgfIL7yFkRHOxVJJPzPpA5dJ0giL8J9LhWTI= Received: by 10.49.68.3 with SMTP id v3mr2059390nfk; Sat, 18 Mar 2006 16:09:08 -0800 (PST) Received: by 10.48.211.2 with HTTP; Sat, 18 Mar 2006 16:09:08 -0800 (PST) Message-ID: <8f985b960603181609q7106f5f4i7730f481f45d66c2@mail.gmail.com> Date: Sat, 18 Mar 2006 19:09:08 -0500 From: "Mike Kienenberger" To: "MyFaces Discussion" Subject: Re: jsessionid added to resources in myfaces SVN current? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I recall having to fix this problem of an appended jsessionid for Tomahawk AddResource. I believe the working code we settled on was this: String pathInfo =3D request.getPathInfo(); String uri =3D request.getContextPath() + request.getServletPath() + (pathInfo =3D=3D null ? "" : pathInfo); On 3/18/06, Andrew Robinson wrote: > I have been using the following code to get the right URL for an image > that is being produced by my servlet: > > src =3D viewHandler.getResourceURL(facesContext, url); > enc =3D (src =3D=3D null) ? null : extCtx.encodeResourceURL(src); > return enc; > > In past versions of myfaces this was working fine: > > /context/path/image.png > > Against the lastest SVN I am getting: > > /context/path/image.png;jsessionid=3DBLAH > > This is breaking my servlet as I am looking at the path to get the > image to create. First of all ";" isn't a valid query string > separator, is it? Secondly, why is the session ID being added to my > resources? I can understand action URLs, but not resources URLs. > > Is this a new bug? >