Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C41B74563 for ; Fri, 1 Jul 2011 15:54:53 +0000 (UTC) Received: (qmail 74777 invoked by uid 500); 1 Jul 2011 15:54:53 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 74407 invoked by uid 500); 1 Jul 2011 15:54:52 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 74257 invoked by uid 99); 1 Jul 2011 15:54:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2011 15:54:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2011 15:54:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A097A43EB00 for ; Fri, 1 Jul 2011 15:54:28 +0000 (UTC) Date: Fri, 1 Jul 2011 15:54:28 +0000 (UTC) From: "Wesley Hales (JIRA)" To: dev@myfaces.apache.org Message-ID: <1079600234.8865.1309535668654.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (PORTLETBRIDGE-217) Test URL should be "resources/myImage.jpg?javax.portlet.faces.BackLink=myBackLinkParam" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Test URL should be "resources/myImage.jpg?javax.portlet.faces.BackLink=myBackLinkParam" --------------------------------------------------------------------------------------- Key: PORTLETBRIDGE-217 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-217 Project: MyFaces Portlet Bridge Issue Type: TCK Challenge Components: TCK Affects Versions: 2.0.0 Reporter: Wesley Hales Assignee: Michael Freedman [Alexander Smirnov & Wesley Hales: Red Hat] [JSR-329 portlet bridge 2.0] [portlet_2_bridge-1_0-final-spec] [chapter_6/section_6_5_1/Tests#testImplicitObject, chapter_6/section_6_1_3_1/Tests#illegalRedirectRenderTest, chapter_4/section_4_2_1/InitMethodTestPortlet#init, /testsuite/beans/NonJSFViewBean#getUrl] [https://issues.jboss.org/browse/PBR-254?focusedCommentId=12611867&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12611867 Many tests failed because of possible TCK issue, that threats URLs not started with application context as internals. Following this logic (and given Oracle's use of encodeActionURL to encode its equivalent of the OutputLink) then encodeAction should do a return portletResponse.encodeURL(target) if the url begins with a / and isn't (this application) context-path prefixed. I.e. we need the bridge code to give the portlet container a chance to encode the server/port (construct and absolute url) - typically when the portlet container is remote. Sound about right? I know the spec doesn't say anything about this but it seems to fall out from this decision/interpretation. Does your code already do this? If not should it? Mike On 6/14/2011 1:29 PM, Michael Freedman wrote: > So what you are saying is that because ViewHandler.getResourceURL() is defined and it will always append the ContextPath then the spec/impl should assume that urls starting with '/' that don't contain a ContextPath must be out of the application (because all in application urls would have been channeled through getResourceURL? I.e. just using /xxx as a resource url without a context path doesn't work in servlet based JSF. Interesting - okay I see your logic. Please file a JIRA against the TCK indicating the test url it should use ought to be "resources/myImage.jpg?javax.portlet.faces.BackLink=myBackLinkParam". If possible please make the needed changes yourself and verify (and then submit the jira with either the details of the code change or a patch file). > > I will file a bug against the RI concerning its not treating / as an external url - and since we are changing the test/fixing a bug will just include in the 2.0.1 release. > Mike ] -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira