Details
Description
I user reported that when implementing a custom SecurityHandler the handler was not being correctly attached and called when opening a document .
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
When using the Document class the security callback works as expected. The Viewer RI is a bit different as it requires the securityCallback be set on the documentViewController. There is a bug in the API that prevents the new security callback from being set on the document when a document is opened for the first time. There are ways around this by directly applying it to the document class however it is clumsy.
This fix insures that a call to controller.getDocumentViewController().setSecurityCallback(e ->{}) works as expected.