-
Improvement
-
Resolution: Unresolved
-
Major
When a user enters erroneous data in the configuration screen and hits Save, we should be able to redirect the user back to the page and display a user-friendly error message.
This becomes relevant if the user pastes data into a field and hits Save or simply ignores the UI error message. See JENKINS-19582 for an example.
- is blocking
-
JENKINS-2055 Disallow saving config if "Use custom workspace" is checked, but directory left blank
-
- Open
-
-
JENKINS-40323 No SCM selected when adding a shared library
-
- Open
-
-
JENKINS-19582 GoogleCode browser URL must end with '/source/'
-
- Reopened
-
- links to
Not sure about API design. A special IOException subclass that could be caught by top-level doConfigSubmit and used to redisplay the form page? But then your edits would be lost, or at least all the edits following the error in terms of order of application.
Graying out Save (and Apply) while there are outstanding errors might sound reasonable, but I am afraid that there may be too many situations where a false positive error is displayed—e.g. configuring a native Maven job will complain if you have no Maven installations, yet you might have already added one in another tab, and there is no way to dismiss the message. Perhaps all such cases should be treated as bugs in the code rendering the form validation, i.e. should downgrade to warning?