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

RegExp related Javascript exception on job configuration page

    XMLWordPrintable

Details

    Description

      Upgraded to Jenkins 1.528. Since we upgraded the job configuration page stays in loading state (because of a javascript exception):

      Uncaught SyntaxError: Invalid flags supplied to RegExp constructor 'sonar'
      (anonymous function)
      e.targetUrl hudson-behavior.js:416
      registerValidator hudson-behavior.js:428
      (anonymous function) behavior.js:111
      (anonymous function) behavior.js:107
      Behaviour.applySubtree behavior.js:93
      Behaviour.apply behavior.js:76
      (anonymous function) behavior.js:71
      window.onload behavior.js:125
      

      The URL path for this exception is /job/sonar-analyse/configure. We have this issue on all jobs.

      Attachments

        1. screenshot-1.jpg
          110 kB
          Stephan Lehmann
        2. Sonar Analysis (Branch) Config [Jenkins]-000049.png
          28 kB
          Stephan Lehmann
        3. system-information.txt
          8 kB
          Stephan Lehmann

        Issue Links

          Activity

            tchap Ondrej Kupka added a comment -

            The fast fix I posted above seems to work for people, what about your try that as one well, chuenniger? Just find your hudson-behavior.js and add the line to the right spot (somewhere around line 416).

            Regards,
            Ondrej Kupka

            tchap Ondrej Kupka added a comment - The fast fix I posted above seems to work for people, what about your try that as one well, chuenniger ? Just find your hudson-behavior.js and add the line to the right spot (somewhere around line 416). Regards, Ondrej Kupka
            pedersen Björn Pedersen added a comment - This seems to be related to https://issues.jenkins-ci.org/browse/JENKINS-19248

            Argh. Sorry pedersen didn't discovered this issue before creating.

            markogerber Stephan Lehmann added a comment - Argh. Sorry pedersen didn't discovered this issue before creating.
            chuenniger Christian Hünniger added a comment - - edited

            @Ondrej Kupka - Thank you. Has helped.

            chuenniger Christian Hünniger added a comment - - edited @Ondrej Kupka - Thank you. Has helped.
            jglick Jesse Glick added a comment -

            Believed to have been resolved with the fix in JENKINS-19457.

            jglick Jesse Glick added a comment - Believed to have been resolved with the fix in JENKINS-19457 .

            People

              Unassigned Unassigned
              markogerber Stephan Lehmann
              Votes:
              6 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: