Page 1 of 1

Can't Delete a Folder with Readonly Nodes

PostPosted:Thu Aug 21, 2008 2:22 am
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.

Re:Can't Delete a Folder with Readonly Nodes

PostPosted:Thu Aug 21, 2008 10:11 am
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.

Re:Can't Delete a Folder with Readonly Nodes

PostPosted:Tue Aug 26, 2008 2:09 pm
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.

Re:Can't Delete a Folder with Readonly Nodes

PostPosted:Tue Aug 26, 2008 3:34 pm
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.

Re:Can't Delete a Folder with Readonly Nodes

PostPosted:Wed Aug 27, 2008 5:44 am
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?

Re:Can't Delete a Folder with Readonly Nodes

PostPosted:Fri Aug 29, 2008 11:54 pm
by pavila
Can you post the steps to reproduce the issue?

Re:Can't Delete a Folder with Readonly Nodes

PostPosted:Sun Aug 31, 2008 11:25 pm
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.

Re:Can't Delete a Folder with Readonly Nodes

PostPosted:Mon Sep 01, 2008 7:42 pm
by pavila
Can you reproduce this bug in the online demo (http://demo.openkm.com)?

Re:Can't Delete a Folder with Readonly Nodes

PostPosted:Mon Sep 01, 2008 10:53 pm
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!!!

Re:Can't Delete a Folder with Readonly Nodes

PostPosted:Tue Sep 02, 2008 7:03 am
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.

Re:Can't Delete a Folder with Readonly Nodes

PostPosted:Tue Sep 02, 2008 8:03 am
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.

Re:Can't Delete a Folder with Readonly Nodes

PostPosted:Wed Sep 03, 2008 12:40 pm
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]

Re:Can't Delete a Folder with Readonly Nodes

PostPosted:Wed Sep 03, 2008 10:23 pm
by Dave
Thanks, will try that later in the day, I\'ll let you know how I go.