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

With email-ext 2.3, saving a job configuration crashes with "Failed to parse form data. Please report this problem as a bug"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • email-ext-plugin
    • None
    • Hudson 1.339 and email-ext 2.3 on Linux RHEL5.

      I just upgraded to email-ext 2.3. I then go to the configuration page for a job which does not use email-ext, and click "save" (without changing anything). This results in the crash detailed below. Ihave not tried this on a job that does use email-ext.

      Error

      Failed to parse form data. Please report this problem as a bug
      JSON={"":["select","Failure",""],"builder":{"kind":"hudson.tasks.Shell$DescriptorImpl","shell":"date\n${HUDSON_PYTHON_COMMAND} builder/hudson/post-commit.py\necho \"return code from post-commit.py was $?\"\n","stapler-class":"hudson.tasks.Shell"},"customWorkspace":{"directory":"${HUDSON_WORKSPACE_PARENT}/${JOB_NAME}-${EXECUTOR_NUMBER}"},"description":"<p style=\"font-size:120%\">Every subversion commit to the GDA trunk triggers this job.<\/p>\n<p>If the commit was to trunk, then (excluding a few special cases), the \"quick\" test jobs are triggered.<\/p>\n\n\n","hasCustomQuietPeriod":

      {"quiet_period":"0"}

      ,"hasSlaveAffinity":

      {"slave":"master"}

      ,"hudson-plugins-emailext-ExtendedEmailPublisher":false,"hudson-tasks-Mailer":

      {"mailer_notifyEveryUnstableBuild":true,"mailer_recipients":"Matthew.Webber@diamond.ac.uk","mailer_sendToIndividuals":false}

      ,"jobProperty0":{},"jobProperty1":{},"jobProperty2":

      {"tracWebsite":""}

      ,"logrotate":

      {"logrotate_days":"2","logrotate_nums":"10"}

      ,"mailer_Failure_body":"$PROJECT_DEFAULT_CONTENT","mailer_Failure_configured":"true","mailer_Failure_includeCulprits":false,"mailer_Failure_recipientList":"","mailer_Failure_sendToDevelopers":true,"mailer_Failure_sendToRecipientList":true,"mailer_Failure_subject":"$PROJECT_DEFAULT_SUBJECT","mailer_Fixed_body":"$PROJECT_DEFAULT_CONTENT","mailer_Fixed_configured":"false","mailer_Fixed_includeCulprits":false,"mailer_Fixed_recipientList":"","mailer_Fixed_sendToDevelopers":true,"mailer_Fixed_sendToRecipientList":true,"mailer_Fixed_subject":"$PROJECT_DEFAULT_SUBJECT","mailer_Still-Failing_body":"$PROJECT_DEFAULT_CONTENT","mailer_Still-Failing_configured":"false","mailer_Still-Failing_includeCulprits":false,"mailer_Still-Failing_recipientList":"","mailer_Still-Failing_sendToDevelopers":true,"mailer_Still-Failing_sendToRecipientList":false,"mailer_Still-Failing_subject":"$PROJECT_DEFAULT_SUBJECT","mailer_Still-Unstable_body":"$PROJECT_DEFAULT_CONTENT","mailer_Still-Unstable_configured":"false","mailer_Still-Unstable_includeCulprits":false,"mailer_Still-Unstable_recipientList":"","mailer_Still-Unstable_sendToDevelopers":true,"mailer_Still-Unstable_sendToRecipientList":false,"mailer_Still-Unstable_subject":"$PROJECT_DEFAULT_SUBJECT","mailer_Success_body":"$PROJECT_DEFAULT_CONTENT","mailer_Success_configured":"false","mailer_Success_includeCulprits":false,"mailer_Success_recipientList":"","mailer_Success_sendToDevelopers":true,"mailer_Success_sendToRecipientList":false,"mailer_Success_subject":"$PROJECT_DEFAULT_SUBJECT","mailer_Unstable_body":"$PROJECT_DEFAULT_CONTENT","mailer_Unstable_configured":"false","mailer_Unstable_includeCulprits":false,"mailer_Unstable_recipientList":"","mailer_Unstable_sendToDevelopers":true,"mailer_Unstable_sendToRecipientList":true,"mailer_Unstable_subject":"$PROJECT_DEFAULT_SUBJECT","name":"Subversion.post-commit","project_content_type":"default","project_default_content":"$DEFAULT_CONTENT","project_default_subject":"$DEFAULT_SUBJECT","pseudoRemoteTrigger":

      {"authToken":"HKE6U1NBGY7KV1HV"}

      ,"recipientlist_recipients":"","scm":{"":"auto","doRevert":false,"excludedCommitMessages":"","excludedRegions":"","excludedRevprop":"","excludedUsers":"","locations":

      {"local":"","remote":"https://trac.diamond.ac.uk/svn/gda/trunk/builder"}

      ,"useUpdate":true,"value":"2"}}

      net.sf.json.JSONException: JSONObject["hudson-plugins-emailext-ExtendedEmailPublisher"] is not a JSONObject.
      at net.sf.json.JSONObject.getJSONObject(JSONObject.java:1734)
      at hudson.util.DescribableList.rebuild(DescribableList.java:139)
      at hudson.model.Project.submit(Project.java:195)
      at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:97)
      at hudson.model.Job.doConfigSubmit(Job.java:967)
      at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:527)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:185)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:74)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:492)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:180)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:492)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:408)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:117)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      at org.jvnet.hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:47)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.lang.Thread.run(Thread.java:619)

            mindless Alan Harder
            mwebber Matthew Webber
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: