It is common in webapps to validate on the server side. Even if you also validate on the client side, server side will enforce the rules (there may be reasons such as security, to avoid injection attacks).
On Thursday, May 19, 2016 at 12:48:46 AM UTC+10, Samat Davletshin wrote: > > I also do not quite get how name validation happens on newJob creation. > add-item.js sends GET request to localhost:8080/jenkins/checkJobName > If the job name is incorrect it receives an error string "message". > > Where can see what happens at /checkJobName? > Are there any problems with the check happening on client side in > JavaScript? > > It seems to me that job validation should not be very complicated and it > would be better to do it on client side. > This way it would be possible to give the user a real time feedback and > show the warning message right after he typed it. Currently it happens only > on blur what is inconvenient in my view. > -- 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 jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a641bc51-eafe-4743-bdd6-91e222656d1e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.