Closed vladak closed 5 years ago
The trouble is that the RESTful API call needs to made from within an authorization plugin where the plugin loader constrains what classes can be loaded (as specified in the package blacklist in opengrok-indexer/src/main/java/org/opengrok/indexer/framework/PluginClassLoader.java
).
The constraint is actually not about used packages rather than defined packages so this should work. It seems that Jersey API can be used.
It happens quite often that all LDAP servers in given pool become unavailable which results in project picker to remain empty in the UI. This is confusing for the users.
One idea would be to introduce hooks that would be triggered whenever LDAP server pool fails or becomes available. The hooks would result in API call so that e.g.
Message
can be created/cleared which would result in error to be displayed/removed in the UI.