-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pluginStack is not encoded into configuration after some event #2002
Comments
Actually the stack is there however in reduced form:
So only the "setup" property has survived, the stuff added by "add" method did not. |
https://stackoverflow.com/questions/20306992/serialize-object-to-xml-in-java-ignores-some-variable-fields-of-my-object explains the XML encoder behavior (which we have to fight with in the past) and checking getters/setters for the private Also since sending new config to the webapp the configuration received back contains the previously missing pieces. It cannot be simply reproduced using auth stack reload. There is one interesting thing about the add method. In the readonly configuration they were all present like this:
I.e. the I also fixed the example on https://github.com/oracle/opengrok/tree/master/plugins#example-configuration and https://github.com/oracle/opengrok/blob/master/plugins/README.md accordingly. |
It has a property, the property is the pluginStack and it's calling this method of the pluginStack: 94
95 /**
96 * Add a new authorization entity into this stack.
97 *
98 * @param s new entity
99 */
100 public void add(AuthorizationEntity s) {
101 this.stack.add(s);
102 } |
The
pluginStack
disappears from encodedConfiguration
object (acquired using thegetconf
Message) some time after the webapp is running. It could be after plugin reload.The text was updated successfully, but these errors were encountered: