Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-383

Wrong Schedule Format leeds to exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      If I enter the schedule in an wrong format, I get an exception instead of an
      error message:

      javax.servlet.ServletException: antlr.ANTLRException: Invalid input: "20 1 * * *
      1 2": line 1:11: expecting EOF, found ' '
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:269)
      org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:260)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:198)
      org.kohsuke.stapler.Stapler.service(Stapler.java:72)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

      javax.servlet.ServletException: antlr.ANTLRException: Invalid input: "20 1 * * *
      1 2": line 1:11: expecting EOF, found ' '
      hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:500)
      hudson.model.Project.doConfigSubmit(Project.java:173)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:585)
      org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:50)
      org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:63)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:260)
      org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:260)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:198)
      org.kohsuke.stapler.Stapler.service(Stapler.java:72)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

        Attachments

          Activity

          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Fixed in 1.89.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Fixed in 1.89.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            troggan troggan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: