See below:
Charles Severance <[EMAIL PROTECTED]> wrote on 08/27/2006 11:19:08 PM:
>
> ==== Bug in pageId lookup in trunk ======
>
> This worked about a week ago - so I am thinking something recent
> happenned when I did an svn update.
>
> The trunk has a bug where PageId's end up with a prefix of a "/" and
> so the configuration can never find find pages - and things blow up
> horribly.
>
> To reproduce - simply bring up pluto, log in as tomcat, and navigate
> to a page other than the default using the dropdown.
>
> The fix is below:
>
> vi pluto-portal-driver/src/main/java/org/apache/pluto/driver/services/
> portal/RenderConfig.java
>
> public PageConfig getPageConfig(String pageId) {
> if (pageId == null || "".equals(pageId)) {
> if (LOG.isDebugEnabled()) {
> LOG.debug(
> "Requested page is null. Returning default: " +
> defaultPageId);
> }
> pageId = defaultPageId;
> }
> PageConfig retval = (PageConfig) pages.get(pageId);
> // TODO: Fix Hack
> if ( retval == null && pageId.startsWith("/") &&
> pageId.length() > 2 ) {
> System.out.println("HACK ALert - Trimming off slash
> " + pageId.substring(1));
> retval = (PageConfig) pages.get(pageId.substring(1));
> }
> System.out.println("retval = " + retval);
> return retval;
> }
>
> [DEBUG] PortalURLParser - Parsing URL: /pluto/portal/Pluto%20Admin
> [DEBUG] PortalURLParser - Parsing request pathInfo: /Pluto Admin
> [DEBUG] PortalDriverServlet - Processing render request.
> [DEBUG] PortalDriverServlet - Rendering Portal: Requested Page: /
> Pluto Admin
> HACK ALert - Trimming off slash Pluto Admin
> retval = [EMAIL PROTECTED]
>
Thanks for this patch. Would you mind submitting this to Jira (http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10560) so we can
properly keep track of this issue? It also would be helpful if you submit
a patch file so we can apply your fix properly. Creating a patch file is pretty
easy if you are using Eclipse and the subeclipse plugin.
- Re: Three problems in beta and trunk - trunk fails ... CDoremus
- Re: Three problems in beta and trunk - trunk fa... Charles Severance
- Re: Three problems in beta and trunk - trun... David H. DeWolf
- Re: Three problems in beta and trunk - ... Elliot Metsger
- Re: Three problems in beta and tru... David H. DeWolf
- Re: Three problems in beta and... Elliot Metsger
- Re: Three problems in beta and... Elliot Metsger
- Re: Three problems in beta and... David H. DeWolf
- Re: Three problems in beta and... Charles Severance
- Re: Three problems in beta and... Elliot Metsger
- Re: Three problems in beta and trunk - trunk fails out o... CDoremus
- Re: Three problems in beta and trunk - trunk fails ... Charles Severance
- Re: Three problems in beta and trunk - trunk fa... David H. DeWolf
- Re: Three problems in beta and trunk - trunk fails ... Charles Severance
