Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
setobjectright and public access restore problem
Thanh_Ho
Hi everyone,We have a dozen of items with "public access" permission record deleted. Normally, they can be restored using LL web interface. However, we want to do it automatically via Java and LAPI. When I tried using SetObjectRight to either add or update RIGHT_WORLD, it didn't work properly and there seems to be a bug somewhere in the system. The main problem seems to be that "public access" is a "public" acltype but not standard type.Can anyone help?Thank you,Thanh
Find more posts tagged with
Comments
John W. Simon, Jr.
I looked at the code for that and you have to pass in parameters...volumeid, dataid, changetype, rightid, and permissions (depending on the changetype).The only time it checks for public access is when you do an update and then it sets another field (basically what ends up in the SEE column of DTREEACL).From what I can tell, it expects rightid to be -1 for public access. Is that what you are using?Also when you say the permission has been deleted, how was that done? Did someone remove it from the table using SQL?
Thanh_Ho
Sorry about making a topic twice. I think you can visit this topic to make the topic consistent.
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=16059358&objAction=view&show=2Yes
, I am using all what you said and the problem seems to be natively in SetObjectRight.a permission record can be deleted by "Remove" it from Permissions page in LL web interface. Doing so in the database may make inconsistencies.