[gatein-issues] [JBoss JIRA] (GTNPORTAL-2751) <priority> in navigation.xml files ignored for merge importMode

Trong Tran (JIRA) jira-events at lists.jboss.org
Wed Oct 9 22:12:03 EDT 2013


     [ https://issues.jboss.org/browse/GTNPORTAL-2751?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel\#worklog-12429963 ]

Trong Tran logged work on GTNPORTAL-2751:
-----------------------------------------

                  Author: Trong Tran
               Edited by: Trong Tran
              Created on: 09/Oct/13 10:09 PM
               Edited on: 09/Oct/13 10:11 PM
              Start Date: 08/Oct/13 6:09 PM (was: 09/Oct/13 10:09 PM)
      Worklog Time Spent: 2 hours 


Issue Time Tracking
-------------------

    Worklog Id:     (was: 12429963)

        
> <priority> in navigation.xml files ignored for merge importMode 
> ----------------------------------------------------------------
>
>                 Key: GTNPORTAL-2751
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-2751
>             Project: GateIn Portal
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>            Reporter: Peter Palaga
>            Assignee: Trong Tran
>   Original Estimate: 4 hours
>          Time Spent: 5 hours
>  Remaining Estimate: 6 hours
>
> Steps to reproduce:
> Clone the Portal Extension Quickstart and deploy it changing the {{<priority>}} value in {{war/src/main/webapp/WEB-INF/conf/sample-ext/portal/group/platform/administrators/navigation.xml}}. 
> NOT OK: The changes have no effect, because priority is ignored in {{org.exoplatform.portal.mop.importer.NavigationImporter.perform()}} with {{importMode}} {{merge}}.
> h3. Solution Proposal A
> * Make {{<priority>}} optional in {{gatein_objects}} XSD and  {{NavigationMarshaller.unmarshalNavigation(StaxNavigator<Element>)}}
> * Explicitly state in the documentation [1] that {{<priority>}} is considered only if not already set (first wins).
> h3. Solution Proposal B
> * Make {{<priority>}} optional in {{gatein_objects}} XSD and  {{NavigationMarshaller.unmarshalNavigation(StaxNavigator<Element>)}}
> * Change the behavior of {{NavigationMarshaller.unmarshalNavigation(StaxNavigator<Element>)}} to the effect that {{<priority>}} is handled in the same way as navigation nodes: it is used or ignored according to the chosen {{importMode}}. Esp. for {{importMode}} {{merge}} the last read {{<priority>}} should win.
> * Document it in [1]
> For both A and B the most or all occutences of {{<priority>}} should be removed from Portal Extension Quickstart.
> [1] [https://docs.jboss.org/author/display/GTNPORTAL35/Portal+Navigation+Configuration]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the gatein-issues mailing list