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

Mercurial plugins have some problem with hudsons API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • mercurial-plugin
    • None
    • Platform: All, OS: All

      Request on hudson api with depth greater than 1 and xpath paramters (e.g.
      https://dev.nlift.com/hudson/api/xml?xpath=*&depth=2) makes exception:
      (I have tried this for all awailable browsers hudson.plugins.mercurial.browser.*)

      Exception:
      Stacktrace:

      org.kohsuke.stapler.export.NotExportableException: class
      hudson.plugins.mercurial.browser.HgWeb doesn't have @ExportedBean
      at org.kohsuke.stapler.export.Model.(Model.java:44)
      at org.kohsuke.stapler.export.ModelBuilder.get(ModelBuilder.java:25)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:173)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:98)
      at org.kohsuke.stapler.export.Property.writeTo(Property.java:82)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:142)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:139)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:180)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:98)
      at org.kohsuke.stapler.export.Property.writeTo(Property.java:82)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:142)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:139)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:139)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:180)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:143)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:98)
      at org.kohsuke.stapler.export.Property.writeTo(Property.java:82)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:142)
      at org.kohsuke.stapler.export.Model.writeTo(Model.java:133)
      at hudson.model.Api.doXml(Api.java:94)
      at sun.reflect.GeneratedMethodAccessor552.invoke(Unknown Source)
      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:493)
      at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:144)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:493)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:409)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:118)
      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 net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:304)
      at
      org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:31)
      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.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)

      Without xpath, the request passes. Or with depth=1 with xpath.

            kohsuke Kohsuke Kawaguchi
            pavolzibrita pavolzibrita
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: