Hi
I also have some problems with permissions. I Just made a simple sample in PHP
Code: Select all$OKMAuth = new SoapClient($DMS_URL."/OpenKM/OKMAuth?wsdl");
$folderRequest = new SoapClient($DMS_URL."/OpenKM/OKMFolder?wsdl");
$token = $OKMAuth->login('MyUser', 'MyPass');
$OKMAuth->grantRole($token, '/okm:root/DAI/Marken/1/Test/', 'TMO', 15, false) ;
$roles = $OKMAuth->getGrantedRoles($token, '/okm:root/DAI/Marken/1/Test/');
$OKMAuth->logout($token);
var_dump($roles);
The path exists, the role exists and I can add the role to the folder with the OpenKM webinterface but the script is throwing this error:
Code: Select allFatal error: Uncaught SoapFault exception: [env:Server] java.lang.NullPointerException in /var/www/vhosts/srepweb132/data/html/dms/dms_test.php:20 Stack trace: #0 [internal function]: SoapClient->__call('grantRole', Array) #1 /var/www/vhosts/srepweb132/data/html/dms/dms_test.php(20): SoapClient->grantRole('107636643987133...', '/okm:root/DAI/M...', 'TMO', 15, false) #2 {main}
I also tried different combinations of parameters without beeing successfull.
Thank you for helping!