cancel
Showing results for 
Search instead for 
Did you mean: 

[solved][urgent] I have bug when refreshing browse view.

zomurn
Champ in-the-making
Champ in-the-making
Hi everyone,

My customer is complaining and noticed a big bug on its alfresco, the scenario is as follow :

1) The user browse its home space
2) The user select a document to edit (click the icon) from the inside browse view.
3) A new dialog view is showed to the user.
4) The user fill the form and click a dialog button like "finish". It causes a move of the document into another folder named "A controler"
5) Then the user is redirected to the list of documents in the browse view and the processed document previously still appears  WHERE AS (through browse node admin console) it is really in the folder "A controler"

My question is : WHY the browse view has not been refresh. Here is the code executed after the action "finish" is done :

UIContextService.getInstance( FacesContext.getCurrentInstance() )
            .notifyBeans();

      NavigationBean lNavigation = (NavigationBean) FacesContext
            .getCurrentInstance().getExternalContext().getSessionMap().get(
                  "NavigationBean" );

      if (lNavigation != null)
      {
         lNavigation.resetCurrentNodeProperties();
      }

Is there something wrong ?

Thanks you to help me !
2 REPLIES 2

zomurn
Champ in-the-making
Champ in-the-making

zomurn
Champ in-the-making
Champ in-the-making
As usual, I'am going to answer to myself, hoping it might help someone.
In fact, the problem came from lucene indexing. It is the reason why the browse view show "false" content, displaying speaking.
Doing an index recovery to FULL solved the problem.
Maybe, and I didn't know, we need (or recommended) to explicity reindex all documents when upgrading alfresco in production…