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

After a given uptime of Jenkins, build now link doesn't work as expected

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • None

      After some time, a javascript error occurs when browsing a project page.

      SyntaxError: missing ( before formal parameters
      function build_id-1719326292(a) {

      The side-effect is that when clicking on Build now (or another link that uses the same system to generate a POST request), we get redirected to a page telling us we should use the POST method.

      I've narrowed down the problem to https://github.com/jenkinsci/jenkins/commit/3c01366e0bc5c3e8de23eb7337e8c3e4dbd7843c which introduced usage of Functions#generateId()

      However, the iota used is an int, so after some time, it overflows, and becomes negative.

      the issue is that it seems javascript functions cannot contain the character -, hence the problem.

      The problem affects Jenkins 1.520+.

          [JENKINS-19333] After a given uptime of Jenkins, build now link doesn't work as expected

          Vincent Latombe created issue -
          Vincent Latombe made changes -
          Description Original: After some time, a javascript error occurs when browsing a project page.

          {quote}
          SyntaxError: missing ( before formal parameters
          function build_id-1719326292(a) {
          {quote}

          I've narrowed down the problem to https://github.com/jenkinsci/jenkins/commit/3c01366e0bc5c3e8de23eb7337e8c3e4dbd7843c which introduced usage of Functions#generateId()

          However, the iota used is an int, so after some time, it overflows, and becomes negative.

          the issue is that it seems javascript functions cannot contain the caracter *-*, hence the problem.

          The problem affects Jenkins 1.520+.
          New: After some time, a javascript error occurs when browsing a project page.

          {quote}
          SyntaxError: missing ( before formal parameters
          function build_id-1719326292(a) {
          {quote}

          The side-effect is that when clicking on Build now, we get redirected to a page telling us we should use the POST method.

          I've narrowed down the problem to https://github.com/jenkinsci/jenkins/commit/3c01366e0bc5c3e8de23eb7337e8c3e4dbd7843c which introduced usage of Functions#generateId()

          However, the iota used is an int, so after some time, it overflows, and becomes negative.

          the issue is that it seems javascript functions cannot contain the caracter *-*, hence the problem.

          The problem affects Jenkins 1.520+.
          Vincent Latombe made changes -
          Description Original: After some time, a javascript error occurs when browsing a project page.

          {quote}
          SyntaxError: missing ( before formal parameters
          function build_id-1719326292(a) {
          {quote}

          The side-effect is that when clicking on Build now, we get redirected to a page telling us we should use the POST method.

          I've narrowed down the problem to https://github.com/jenkinsci/jenkins/commit/3c01366e0bc5c3e8de23eb7337e8c3e4dbd7843c which introduced usage of Functions#generateId()

          However, the iota used is an int, so after some time, it overflows, and becomes negative.

          the issue is that it seems javascript functions cannot contain the caracter *-*, hence the problem.

          The problem affects Jenkins 1.520+.
          New: After some time, a javascript error occurs when browsing a project page.

          {quote}
          SyntaxError: missing ( before formal parameters
          function build_id-1719326292(a) {
          {quote}

          The side-effect is that when clicking on Build now (or another link that uses the same system to generate a POST request), we get redirected to a page telling us we should use the POST method.

          I've narrowed down the problem to https://github.com/jenkinsci/jenkins/commit/3c01366e0bc5c3e8de23eb7337e8c3e4dbd7843c which introduced usage of Functions#generateId()

          However, the iota used is an int, so after some time, it overflows, and becomes negative.

          the issue is that it seems javascript functions cannot contain the caracter *-*, hence the problem.

          The problem affects Jenkins 1.520+.
          Vincent Latombe made changes -
          Description Original: After some time, a javascript error occurs when browsing a project page.

          {quote}
          SyntaxError: missing ( before formal parameters
          function build_id-1719326292(a) {
          {quote}

          The side-effect is that when clicking on Build now (or another link that uses the same system to generate a POST request), we get redirected to a page telling us we should use the POST method.

          I've narrowed down the problem to https://github.com/jenkinsci/jenkins/commit/3c01366e0bc5c3e8de23eb7337e8c3e4dbd7843c which introduced usage of Functions#generateId()

          However, the iota used is an int, so after some time, it overflows, and becomes negative.

          the issue is that it seems javascript functions cannot contain the caracter *-*, hence the problem.

          The problem affects Jenkins 1.520+.
          New: After some time, a javascript error occurs when browsing a project page.

          {quote}
          SyntaxError: missing ( before formal parameters
          function build_id-1719326292(a) {
          {quote}

          The side-effect is that when clicking on Build now (or another link that uses the same system to generate a POST request), we get redirected to a page telling us we should use the POST method.

          I've narrowed down the problem to https://github.com/jenkinsci/jenkins/commit/3c01366e0bc5c3e8de23eb7337e8c3e4dbd7843c which introduced usage of Functions#generateId()

          However, the iota used is an int, so after some time, it overflows, and becomes negative.

          the issue is that it seems javascript functions cannot contain the character *-*, hence the problem.

          The problem affects Jenkins 1.520+.
          Vincent Latombe made changes -
          Link New: This issue duplicates JENKINS-20085 [ JENKINS-20085 ]
          Vincent Latombe made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 150781 ] New: JNJira + In-Review [ 206896 ]

            Unassigned Unassigned
            vlatombe Vincent Latombe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: