• Folder Node script does not work in 5.1.9 (7447)

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #14900  by ngovinda
 
I have been using a script in a node (folder) to rename all created folders under it, successfully in 5.1.7 see code below:
Code: Select all
import javax.jcr.*;
import com.openkm.core.*;
import com.openkm.bean.*;
import com.openkm.api.OKMDocument;

String userID = session.getUserID();
String parentDir = com.openkm.util.FileUtils.getParent(eventNode.getPath());
String docName = com.openkm.util.FileUtils.getName(eventNode.getPath());

if (eventType.equals("CREATE_FOLDER")) {
        session.move(eventNode.getPath(), parentDir + "/" +  userID + " " + docName);
        session.save();
}
It did not work when I migrated to 5.1.8.
It did not also work when I did a clean install of 5.1.8 and created the script.
I tried it in a clean install of 5.1.9 and it did not work.

Any help is very much appriciated.

Regards - Govinda
 #14967  by ngovinda
 
Thanks Pavila.

I downloaded the night build
http://integration.openkm.com/5.1.x/ as suggested by you. I replaced the OpenKm.war and edited OpenKM.cfg from none to upgrade. but I am getting the following error:
Code: Select all
OKM-022024 (getEnablesExtensions): OKM-022024
could not load an entity: [com.openkm.dao.bean.Profile#3]
OKM-014024(getUserWorkspace): OK-014024
I had also delted the work and tmp directories and changed update to none, but I am getting the same error

Regards - Govinda

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.