cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in displaying folders and contents

bgl
Champ on-the-rise
Champ on-the-rise
Hi,

After an installation of a machine, I have restored a previously saved alf_data folder and the corresponding database. Tomcat was stopped with no problem before the saving was done.

Alfresco then started but I couldn't find some folders or documents. I've checked directly in the file system : they are here ! I have checked the db (sql file) : they are here !

What is really strange is that I can see missing folders in the navigation plugin (on the left). Moreover, using the node explorer in administration console, I can see all files and folders that are not displayed in main area that displays the items.

Anyone has already met such a thing ? how it is possible those components supply different results ?

My version of Alfresco is 2.1.

thank you !
1 REPLY 1

bgl
Champ on-the-rise
Champ on-the-rise
Answering to myself 🙂

After investigating in alfresco code (open source is great !!!), I found the following : the plugin gives a different view since it is using a different service (which was quite obvious in fact due to different results from the same source…).
Plugin uses nodeservice while main view is using filefolderService.

Further investigations showed that fileFolderService is using lucene search for getting children. I imagine because lucene is faster than db search but if someone who knows the topic could give me some hints, I'm interested.

So the problem was related to Lucene Indexes. I have then changed a property in repository.properties to require re-indexing:

index.recovery.mode=FULL

Great ! But re-indexing has failed because it was saying that a node had never exist…seeing the date of the node, I understood since I had never created a content at this date…………….ok one is wrong but I want all others to be updated ! But this is not possible since re-index in done in a transaction. If one fail, all is failing…
So I modified the code of Alfresco to ignore the mistakes and get my contents back…

I would suggest to have a mode where you accept failure but you are notified about failure (which node)…
Just an idea.