Thank you very much! Yes, I tried doing `@AncestorInPath View view` from a lazy-loaded block. Ok, then I need to do the workaround.
Am Freitag, 11. März 2016 21:56:21 UTC+1 schrieb Jesse Glick: > > On Fri, Mar 11, 2016 at 9:34 AM, Robert Sandell <[email protected] > <javascript:>> wrote: > > Stapler.getCurrentRequest().findAncestor(View.class).getObject() > > Or more simply, `@AncestorInPath View view` from a web method. > > However if you are doing this from a `FormValidation doCheckXXX` web > method called from a lazy-loaded block (such as a newly configured > property), you are probably hitting JENKINS-19413. Workaround: > > > https://github.com/jenkinsci/workflow-plugin/blob/82e7defa37c05c5f004f1ba01c93df61ea7868a5/step-api/src/main/java/org/jenkinsci/plugins/workflow/util/StaplerReferer.java#L61 > > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/381499c8-fcc7-4fd6-8041-c1f675d2a558%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
