• Can't Delete a Folder with Readonly Nodes

  • 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.
 #1004  by Dave
 
I had a look through the forum, but didn\'t find anything else that really covered this problem, so I do apologise if this is somewhere else.

We are trying to delete folders, but the system won\'t let us, keeps saying

\'OKM-001009(Delete): Folder access denied\'
\'Can\'t delete a folder with readonly nodes\'.

I think I\'ve checked all the permissions that I can think of, in and out of OpenKM, and can\'t see any reason why we can\'t delete a folder. We are using v2.0b OpenKM.

Have tried as the user who created the folder, and the system user.

Any advice would be very much appreciated.
 #1006  by jllort
 
Seems there\'s a folder or document with read only grants under this folder.

Try to login as system, an change folder grant recursively -> on security grant check option an after it add write grant to user.

You might delete folder with system user ( if not is a bug ). Confirm that you can\'t delete it with system.
 #1019  by Dave
 
Sorry, but nothing in the folder, is perfectly clean.

I\'ve tried as the user who created the folder, and as the System user, same message.

I\'ve gone into the windows directories and set the attrib to -r on all files and folder, just to be sure, but still can\'t delete folders in OpenKM.

Is very frustrating, as you can imagine.
 #1020  by jllort
 
You don\'t need to go to windows to change grants there, is a error from OpenKM for low level privileges on some node child under folder path you\'re trying to delete.

Imagine a folder structure like this

Folder1
- Folder child 1.1
- Folder child 1.2
-- Folder child 1.2.1
- Folder child 1.3
etc....

1- Log as system user
2- Go to Folder1 path
3- Show secutiry popup
4- Ensure \"recurse permission change\" checkbox is checked
5- Add system read/ write grants ( if exist yet, remove an add )
6- Do the same with userX
7- Try to delete folder now.
 #1021  by Dave
 
No, sorry, still no luck, tried exactly as you have suggested and same message each time. Still a problem with readonly nodes.

I have set up different groups in the roles.properties file. I thought maybe this might have had something to do with it, I have changed different users and group security settings on the directories but still am not able to delete.

We are able to rename directories and move them, so have put them all into a trash folder for the moment. That at least allows us to keep the directory structure partly clean, but no matter what I try I can not delete a folder once it is created.

Would you have any other suggestions?

ADDITIONAL:
I have logged in as system, gone into adminisitration, view repository, and have navigated to the directory, changed owner to system, and tried to delete, still no luck. Is there a way to force delete a directory from within administration?
 #1057  by Dave
 
The issue is easy to repoduce, just create a directtory anywhere then try to delete it, and we can\'t. I\'ve tried many times, and on every one it tells us the same message as indicated above, they just won\'t delete.

I was hoping you might have a way to manually access and delete directories in the database structure? Is this possible?

We can add and delete files in all directories no problem, we can change permissions, owners, move or rename directores no problem, we just can not delete a directory once it is created. The system continually gives us the readonly node message when we do.

Very frustrating, but otherwise it is a great application, appreciate the help.
 #1071  by Dave
 
Hi, tried it in the online demo, and it worked fine. Created a test directory off the root, then deleted it no problem.

I can not do this on our system, as soon as a directory is created we are unable to delete it, even though we have changed no rights or permissions over the directory. It\'s only directories, we can created and delete files no problems.

Could it be a rights issue at the windos directory level? Can I access the directory structure in the database manually, to try and delete the unwanted directories? Are there any other rights outside OpenKM I need to check? HELP!!!
 #1073  by pavila
 
Seem to be a bug related to the last released version. This bug will be fixed in the next release. You have several options: wait for the next release, edit the source code, fix the bug and recompile it, or buy support from us.

Direct access to the repository is not recommended because you can broke it.

Files and folders under $JBOSS_HOME/repository should have R/W grants to user who JBoss.
 #1075  by Dave
 
Thanks for getting back Pavila, appreciated.

How long now before you release the next version? I certainly don\'t have the skills to be editing and recompiling the source code.
 #1077  by pavila
 
I think we\'ll publish a beta release in two months. Also you can try to overwrite these two files and you will be able to delete nodes from repository at low-level. Note that you can brick your repository using this low-level tool so is a not recommended method. Perform a repository backup before try it. [file name=node_remove.zip size=3473]http://www.openkm.com/images/fbfiles/fi ... remove.zip[/file]

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.