It does not appear to be the same situation as  
https://issues.jenkins.io/browse/JENKINS-65585, and yes, I've tried @POST. 
What I thought might be happening is that the validation methods are in the 
base class, but that appears not to matter. I've checked the spelling 
pretty carefully. It would be nice to know exactly where the resolution of 
the check is done, because single stepping through the Jenkins run-time is 
not providing any wisdom. The check is not being invoked/found after Apply 
on a freestyle project or when configuring the plugin. Getters and setters 
are all fine, but the validation methods for any fields, including the ones 
that used to work, seem to be ignored. I can't revert to the version of 
Jenkins where this was last known to work definitively (around 2.74) 
because of dependencies.

On Friday, June 18, 2021 at 6:49:40 a.m. UTC-4 [email protected] wrote:

> Maybe this is related to https://issues.jenkins.io/browse/JENKINS-65585?
>
> Or: did you already add the @Post annotation to your methods?
>
> Example:
>
> https://github.com/jenkinsci/warnings-ng-plugin/blob/master/plugin/src/main/java/io/jenkins/plugins/analysis/core/model/ReportScanningTool.java#L253
>
> Am 17.06.2021 um 23:38 schrieb [email protected] <[email protected]>:
>
> Hi All,
>
> I'm trying to do an integer validation in a freestyle and pipeline plugin. 
> In the past, the doCheck*field*(@QueryParameter String value) would get 
> called, but it isn't any longer. I'm a bit confused about this. Is there a 
> new mechanism available or some dependency to turn on use of these 
> verifiers? The checks do appear to be invoked during the test suite, but 
> not in a live Jenkins at 2.281.
>
> Thanks,
> Randall
>
> -- 
> 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 a 
> <https://groups.google.com/d/msgid/jenkinsci-dev/cc6a0d01-d7fe-485b-9210-736cf6f9d2bcn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
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/f8d3ed77-ce49-4f18-bf88-219909c6f26an%40googlegroups.com.

Reply via email to