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

empty repository browser url gives tomcat error page on different scm plugins

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
      None
    • Environment:
      jenkins 1.451, tomcat 7.0.25, cvs 2.0, git 1.1.15, svn 1.39, mercurial 1.38
    • Similar Issues:

      Description

      i was trying the mercurial plugin and selected repository browser bitbucket but didn't enter an url, this causes an error 500 from tomcat, which make it a bit difficult to figure out what is actually wrong (I though that the repository url was wrong initially).

      javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class hudson.plugins.mercurial.MercurialSCM
      root cause
      java.net.MalformedURLException: no protocol:

      the same happens on the config page for cvs, git and svn (at least, thats all scm plugins I have installed), it would be nice if the url is validated on the config page similar to other config parameters to get a red error message.

        Attachments

          Activity

          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Reassining it to core.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Reassining it to core.
          Hide
          evernat evernat added a comment -

          reproduced with Jenkins 1.504 (using svn)

          Show
          evernat evernat added a comment - reproduced with Jenkins 1.504 (using svn)

            People

            • Assignee:
              Unassigned
              Reporter:
              alexlehm Alex Lehmann
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: