[ 
https://jira.nuxeo.com/browse/NXS-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anahide Tchertchian resolved NXS-736.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.3

The random behaviour is due to the fact that extensions defining default 
virtual navigations, and Studio extensions both wait for the 
"org.nuxeo.runtime.started" bundle to be deployed => order is not 
deterministic, so sometimes the disabling contribution will come before (and 
navs are not disabled correctly because they're enabled again by the initial 
contribution).

NXP-7407 takes care of lazy-loading virtual navigations so that default 
contributions do not need to wait for the runtime to be started.

As a workaround, adding an explicit dependency to the default contribution will 
be enough => the doc at http://doc.nuxeo.com/x/KwRc has been updated as is:

{code}
<require>
  org.nuxeo.ecm.virtualnavigation.directory.DirectoryTreeService.contrib
</require>
<extension target="org.nuxeo.ecm.webapp.directory.DirectoryTreeService"
  point="trees">
  <directoryTree name="bySubjectsNavigation" enabled="false" />
  <directoryTree name="byCoverageNavigation" enabled="false" />
</extension>
{code}




> Default virtual navigations are disabled randomly
> -------------------------------------------------
>
>                 Key: NXS-736
>                 URL: https://jira.nuxeo.com/browse/NXS-736
>             Project: Nuxeo Studio
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Alain Escaffre
>            Assignee: Anahide Tchertchian
>             Fix For: 2.3.3, 2.4, Short term backlog
>
>
> Following documentation, the following XML code added as an XML Extension in 
> Studio does not always make them disappear (the virtual navs) even after 
> restarting the server
> {code}
> <extension target="org.nuxeo.ecm.webapp.directory.DirectoryTreeService"
>     point="trees"> 
> <directoryTree name="bySubjectsNavigation" label="base.navigation.subjects"
>       contentView="bySubjectsContentView" field="subjects" schema="querynav" 
> enabled="false"
>       outcome="subjects_virtual_navigation"> 
>       <directory>topic</directory> 
>       <directory>subtopic</directory> 
>     </directoryTree>
> <directoryTree name="byCoverageNavigation" label="base.navigation.subjects"
>       contentView="bySubjectsContentView" field="subjects" schema="querynav" 
> enabled="false"
>       outcome="subjects_virtual_navigation">
>       <directory>topic</directory>
>       <directory>subtopic</directory>
>     </directoryTree>
> </extension>
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
ECM-tickets@lists.nuxeo.com
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to