Exception using notifyCommit with a bare path

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Kind of an odd case, but when the hg repo path is something like /local/filesystem/path then attempting to trigger a build using http://localhost/mercurial/notifyCommit?url=/local/filesystem/path fails:

      Caused by: java.lang.NullPointerException
              at hudson.plugins.mercurial.MercurialStatus.getPort(MercurialStatus.java:56)
              at hudson.plugins.mercurial.MercurialStatus.looselyMatches(MercurialStatus.java:71)
              at hudson.plugins.mercurial.MercurialStatus.handleNotifyCommit(MercurialStatus.java:106)
              at hudson.plugins.mercurial.MercurialStatus.doNotifyCommit(MercurialStatus.java:87)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:616)
              at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
              at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
              at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
              at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
              at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)
      

      I can work around it by changing all of the jobs to file:///local/filesystem/path but this is a regression from previous versions. Almost certainly introduced in https://github.com/jenkinsci/mercurial-plugin/pull/33

            Assignee:
            Jesse Glick
            Reporter:
            Michael Tharp
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: