* [JENKINS-53282] "Restarting VM as requested" should be just an INFO message
Previously logged as severe was I think incorrect, as it was simply
reacting on "standard" user interaction.
`INFO` ought to be enough because anyway, that's the default logged level,
hence will still be seen by admins if needed.
Side note: there's clearly duplications of code here.
I might address it later, but do not want to right now transform a 5 min
task into a much riskier one.
* Also lower log severity when shutting down after user request
The goal of this function appears to be to replace one content tree
with another content tree.
If the response is empty, that doesn't result in a content tree,
and thus one can't use replaceChild.
* [JENKINS-37599] Add a test to reproduce the issue of handling "minimum" field of nestedRepeatableProperty
* [JENKINS-37599] Default the minimum of repeatable and repeatableProperty to 0
* add support for JSR250 @PostConstruct
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
* with PostConstruct method no need to explicitely invoke load() anymore
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
* introduce PersistentDescriptor to flag Descriptors
which expect load() to be invoked.
This prevent double execution for plugins which
have been designed on previous version of code and
don’t expect load to be automatically invoked.
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
* document PostConstruct method discovery logic
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
* Force reflective access to non-public @PostConstruct methods
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
* check @PostConstruct annotation both on method and on implemented interface with a matching method.
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
* typo
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
* Upgrade to libpam4j 1.11
* Remove libpam4j from core dependencies
This dependency is no longer used ever since PAM authn/authz support
was extracted into the pam-auth-plugin years ago. This reduces the need
to keep security libraries up to date in multiple places.
* Revert "Remove libpam4j from core dependencies"
This reverts commit a7c7a52a48.
* Harden ModelHyperlinkNote against display names containing newlines
* Add regression test
* Harden HyperlinkNote as well
* Remove unnecessary wildcard in function type
* Restrict new method to be extra careful