[gatein-issues] [JBoss JIRA] Commented: (GTNPORTAL-168) Problem when delete all node in portal navigation

Tan Pham Dinh (JIRA) jira-events at lists.jboss.org
Thu Nov 5 05:57:20 EST 2009


    [ https://jira.jboss.org/jira/browse/GTNPORTAL-168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12493277#action_12493277 ] 

Tan Pham Dinh commented on GTNPORTAL-168:
-----------------------------------------

I found some code in UIPageActionListener  in action ChangePageNode line 156

         if (selectedNode == null)
            {
               filter : for (PageNavigation nav : navigations)
               {
                  for (PageNode child : nav.getNodes())
                  {
                     if (PageNavigationUtils.filter(child, pcontext.getRemoteUser()) != null)
                     {
                        selectedNode = child;
                        break filter;
                     }
                  }
               }
            }

Follow this code, we can see that when requested pagenode is null, portal will auto redirect to first available node ( in this case, this is Administration node).
Thanks

> Problem when delete all node in portal navigation
> -------------------------------------------------
>
>                 Key: GTNPORTAL-168
>                 URL: https://jira.jboss.org/jira/browse/GTNPORTAL-168
>             Project: GateIn Portal
>          Issue Type: Bug
>            Reporter: Hang Nguyen
>            Assignee: Tan Pham Dinh
>             Fix For: 3.0.0-CR01
>
>         Attachments: 111.jpg
>
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> Steps:
> - Login in portal
> - Go to Site --> edit navigation --> delete all node --> save
> - Sign out and sign in again --> display error on breadcrumbs portlet

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list