Page 2 of 2

Re: OKM-012015 Trash Error

PostPosted:Wed May 26, 2010 7:02 pm
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)

Re: OKM-012015 Trash Error

PostPosted:Thu May 27, 2010 8:30 am
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.

Re: OKM-012015 Trash Error

PostPosted:Thu May 27, 2010 11:57 am
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);

Re: OKM-012015 Trash Error

PostPosted:Thu May 27, 2010 4:55 pm
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?

Re: OKM-012015 Trash Error

PostPosted:Thu May 27, 2010 5:17 pm
by jllort
remove and add same user must continue having permissions in documents and folders intacts.

Re: OKM-012015 Trash Error

PostPosted:Sat May 29, 2010 12:09 pm
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.