• OKM-012015 Trash Error

  • 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.
 #5148  by jllort
 
Excuses I answers in spanish :) sorry

You must put these tree instructions:
Code: Select all
Folder folder = new Folder();
folder.setPath("/okm:home/lsantos/okm:trash");
es.git.openkm.api.OKMFolder.create("8355711681964473296-15105104592", folder);
In your last post you put it:
Code: Select all
es.git.openkm.api.OKMFolder.create(string "1076396410683499736296-9153889163", folder "/okm:home/lsantos/okm:trash")
That was wrong because "string" and "folder" must not be there, method create needs pass parameters type (String,Folder)
 #5155  by ricardomarques
 
Don't worry about that, I'm portuguese and I understand a bit of spanish, the languages are very similar. I've put those commands on openkm and got this error:

Parse error at line 1, column 31. Encountered: :

I would delete the account and create it but then I would have problems with permissions. Openkm has a bug with file permissions and it doesn't apply them recursively correctly.
 #5157  by jllort
 
Bug about permission which ? if you're talking about changing permisions recursive probably you're not doing right

1- Select checkbox
2- Make user / group changes

The idea is that only propagate new changes, not existing one ( I know first time could generate some confusion, but it's more versatille that replace for all grants you've got in view )

Try with it:
Code: Select all
es.git.openkm.bean.Folder folder = new es.git.openkm.bean.Folder();
folder.setPath("/okm:home/lsantos/okm:trash");
es.git.openkm.api.OKMFolder.create("8355711681964473296-15105104592", folder);
 #5165  by ricardomarques
 
I got this error:
Code: Select all
Sourced file: inline evaluation of: ``es.git.openkm.bean.Folder folder = new es.git.openkm.bean.Folder(); folder.setP . . . '' : Error in method invocation: Static method create( java.lang.String, es.git.openkm.bean.Folder ) not found in class'es.git.openkm.api.OKMFolder' : at Line: 3 : in file: inline evaluation of: ``es.git.openkm.bean.Folder folder = new es.git.openkm.bean.Folder(); folder.setP . . . '' : es .git .openkm .api .OKMFolder .create ( "8355711685417829296-6266443812" , folder )
I do it like that, the permissions don't get attributed to every file if you've got a folder with lots of files. I've already submitted it on http://issues.openkm.com/login_page.php. I'm not the only one with this problem.

If I delete the user and create it again with the same name do the permissions still work?
 #5168  by jllort
 
remove and add same user must continue having permissions in documents and folders intacts.
 #5189  by ricardomarques
 
I've solved the problem. I deleted the user, removed everything from the folder /okm:home/lsantos and created the account again. Everything works perfectly, permissions still work fine.

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.