-
Bug
-
Resolution: Unresolved
-
Major
-
Jenkins 2.361
Active Choices Plug-in 2.6.4
Scriptler 3.5
After upgrading to the versions stated in Environment section the users without Admin permission cannot modify/save any job with Active Choices + Scriptler parameters.
Several exceptions appear and the job fails to be saved.
The full exception is in the attachment.
2022-11-11 11:00:26.630+0000 [id=3362342] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://jenkins.example.local/job/tmp/configSubmit org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.scriptler.builder.ScriptlerBuilder at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:288) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:837) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:741) Caused: java.lang.IllegalArgumentException: Failed to instantiate class org.jenkinsci.plugins.scriptler.builder.ScriptlerBuilder from {"backupJobName":"","builderId":"1668163507392_2","scriptlerScriptId":"sb_component_selector.groovy","propagateParams":false} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:744) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:524) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:850) Caused: java.lang.IllegalArgumentException: Failed to convert the scriptlerBuilder parameter of the constructor public org.biouno.unochoice.model.ScriptlerScript(org.jenkinsci.plugins.scriptler.builder.ScriptlerBuilder,java.lang.Boolean) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:852) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:741) Caused: java.lang.IllegalArgumentException: Failed to instantiate class org.biouno.unochoice.model.ScriptlerScript from {"value":"1","scriptlerBuilder":{"backupJobName":"","builderId":"1668163507392_2","scriptlerScriptId":"sb_component_selector.groovy","propagateParams":false},"isSandboxed":false,"stapler-class<span class="code-quote">":"org.biouno.unochoice.model.ScriptlerScript","$class<span class="code-quote">":"org.biouno.unochoice.model.ScriptlerScript"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:744) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:524) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:519) at hudson.model.Descriptor.bindJSON(Descriptor.java:621) at hudson.model.Descriptor.newInstance(Descriptor.java:591) Caused: java.lang.LinkageError: Failed to instantiate class org.biouno.unochoice.model.ScriptlerScript from {"value":"1","scriptlerBuilder":{"backupJobName":"","builderId":"1668163507392_2","scriptlerScriptId":"sb_component_selector.groovy","propagateParams":false},"isSandboxed":false,"stapler-class<span class="code-quote">":"org.biouno.unochoice.model.ScriptlerScript","$class<span class="code-quote">":"org.biouno.unochoice.model.ScriptlerScript"}