• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • other
    • None
    • Platform: PC, OS: Windows XP

      Hello,
      I can't create a slave in Hudson.
      I submit on : http://myserver/hudson/computer/createItem#
      and i have this trace.
      Thanks for your help
      Yannick AMEUR

      Trace :
      javax.servlet.ServletException: This page expects a form submission
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:450)
      org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:145)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:356)
      org.kohsuke.stapler.Stapler.service(Stapler.java:116)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:91)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:75)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:67)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:133)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause

      java.lang.Error: This page expects a form submission
      org.kohsuke.stapler.RequestImpl.getSubmittedForm(RequestImpl.java:659)
      hudson.model.ComputerSet.doDoCreateItem(ComputerSet.java:214)
      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:156)
      org.kohsuke.stapler.Function.bindAndInvoke(Function.java:76)
      org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
      org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:145)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:356)
      org.kohsuke.stapler.Stapler.service(Stapler.java:116)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:91)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:75)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:67)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:133)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

          [JENKINS-3156] Create a slave bug submission

          yannick101 added a comment -

          Ok, the bug is not reproduct in english only in French submit.

          yannick101 added a comment - Ok, the bug is not reproduct in english only in French submit.

          What browser do you use? Do you see any JavaScript error when you submit?

          Kohsuke Kawaguchi added a comment - What browser do you use? Do you see any JavaScript error when you submit?

          Alan Harder added a comment -

          escaping ' chars in translations to avoid js error

          Alan Harder added a comment - escaping ' chars in translations to avoid js error

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/main/core/src/main/resources/hudson/model/Computer/configure.jelly
          trunk/hudson/main/core/src/main/resources/hudson/model/ComputerSet/_new.jelly
          trunk/hudson/main/core/src/main/resources/hudson/slaves/RetentionStrategy/Demand/config.jelly
          trunk/hudson/main/core/src/main/resources/hudson/slaves/SimpleScheduledRetentionStrategy/config.jelly
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=16012
          Log:
          [FIXED JENKINS-3156] escape ' in errorText values to avoid js error when translations
          include that char (like French). also encode non-ascii on server side rather than
          with js escape() function, as I saw garbled errorText.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/main/core/src/main/resources/hudson/model/Computer/configure.jelly trunk/hudson/main/core/src/main/resources/hudson/model/ComputerSet/_new.jelly trunk/hudson/main/core/src/main/resources/hudson/slaves/RetentionStrategy/Demand/config.jelly trunk/hudson/main/core/src/main/resources/hudson/slaves/SimpleScheduledRetentionStrategy/config.jelly trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=16012 Log: [FIXED JENKINS-3156] escape ' in errorText values to avoid js error when translations include that char (like French). also encode non-ascii on server side rather than with js escape() function, as I saw garbled errorText.

          Alan Harder added a comment -
              • Issue 3231 has been marked as a duplicate of this issue. ***

          Alan Harder added a comment - Issue 3231 has been marked as a duplicate of this issue. ***

            mindless Alan Harder
            yannick101 yannick101
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: