Associate access doc to some docid which doesn't have entry in xml_access table in knb
Currently, some document in xml_document table doesn't have entries in
xml_access table. This is okay during the old access policy.
But we changed the access policy( see bug 437 ) and if there is no entry in
xml_access table, except owner, other person can not access it.
So we need to associate with access policy in xml_access table for these doc
#1 Updated by Jing Tao over 18 years ago
A new java file named AssociateAccessPolicy was created. When we run main
method, the docid which doesn't have a entry in xml_access table will be
The policy is:
If it belong to data set, associate the dataset file acces rule for it.
If it not belong to any dataset, default rule will associate it: owner has full
permission and public have read permission.
It Workes fine it test data base. We need to talk with administrator to backup
Oracle database in KNB. Then run it.
#2 Updated by Jing Tao over 18 years ago
We changed idea and don't want the porgram work. We hope the owner of the data
package use morpho to open it and assign access rule for the documents. Then
save it. So Morpho need the new feature.
For some imergency situation, we can insert some entries into xml_access talbe