Need your help in the following issue:
I have DAOS enabled XPage application (NSF database). All attachments go to DAOS NLOs when uploaded via XPage. When deleting documents via View (in Notes) – documents are being deleted with its NLO-attachments as expected.
Issue with deleting documents via XPage: doing it like
dataSource.getDocument().removePermanently(true)
deletes document but doesn’t delete NLO-attachments from DAOS.
The App database still contains DAOS tickets. Only helps command “load compact -c appDBname.nsf”. Compact causes DBPrune, which cleans that lost (not referenced) NLOs.
Additional information:
Any ideas & advices? Thanks in advance!
So, I can close the issue with the following workaround. As I wrote before, to not have such issue - deletion should be performed by user with at least Editor access level.
So, as workaround: use SSJS and get document via SessionAsSigner.
I didn't find yet explanation in documentation why it depends on access level...