AnsweredAssumed Answered

Change data per service - Share does not update it

Question asked by alfresc0t3ster on Feb 5, 2015
Latest reply on Feb 5, 2015 by alfresc0t3ster

I have a weird problem or I have found a bug in Alfresco 5.0c.

I am currently testing some services in the backend and wrote my own service to overlay the others.
Therein I am using the FileFolderService. Example code of a function:


TransactionService transactionService = (TransactionService) appContext.getBean("transactionService");
       UserTransaction tx = null;
      try {
         FileInfo target_info = fileFolderService.getFileInfo(fileFolder);

         try {
            tx = transactionService.getUserTransaction();

            fileFolderService.rename(target_info.getNodeRef(), newName);

         } catch (Exception e) {
            if (tx != null) {
               try {
               } catch (IllegalStateException e1) {
               } catch (SecurityException e2) {
               } catch (SystemException e3) {
            return false;
      } catch (Exception ex) {
         System.err.println("### ERROR - renameFile - Transaction");
         return false;


It renames a file or a folder. It works, but Share does not update the name in the user interface immediatly (only after 1-5minutes).
If I change a name of a folder, Share interface orders the folder in the correct alphabetically order (uses the changed name), but displays the old folder name.

This happens also with others functions like write content into a file. Share displays the old content (even if I download the file), but if I read out the content in Java, I am getting the changed content of the file.

Refreshing/Clearing cache, dropping/renew session does not change anything. Even with a other browser.

Someone got an answer for that?