• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • other
    • None
    • Platform: All, OS: All

      The previous/next buttons for builds have incorrect build numbers:

      ie, for this build:

      https://****/hudson/job/****/637/

      The previous build is listed as:

      https://****/hudson/job/****/6367/

      It looks like an off-by-one error.

          [JENKINS-1457] Previous/Next buttons have incorrect URLs

          mmastrac created issue -

          terrydye added a comment -

          Created an attachment (id=273)
          How I can reproduce this problem with Hudson 1.219

          terrydye added a comment - Created an attachment (id=273) How I can reproduce this problem with Hudson 1.219

          mmastrac added a comment -

          I just realized that my setup has a port number in it too.

          The root URL is:

          https://server:9090/hudson

          mmastrac added a comment - I just realized that my setup has a port number in it too. The root URL is: https://server:9090/hudson

          Alan Harder added a comment -

          I'm not able to see this problem now, was probably fixed already. Reopen if you
          still see this.

          Alan Harder added a comment - I'm not able to see this problem now, was probably fixed already. Reopen if you still see this.
          Alan Harder made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          mmastrac added a comment -

          Reopening. Can still reproduce.

          Note that I'm using:

          • https:// as the external protocol
          • an external port number
          • mod-ajp to proxy tomcat behind apache.

          mmastrac added a comment - Reopening. Can still reproduce. Note that I'm using: https:// as the external protocol an external port number mod-ajp to proxy tomcat behind apache.
          mmastrac made changes -
          Resolution Original: Cannot Reproduce [ 5 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Alan Harder added a comment -

          Someone else attached some steps that navigate in via the rss feed.. does that
          matter? Do you see the wrong links just navigating to the build page
          (/job/

          {name}

          /

          {build#}

          ) in Hudson in your browser?
          What project type(s) have you seen this in?

          Alan Harder added a comment - Someone else attached some steps that navigate in via the rss feed.. does that matter? Do you see the wrong links just navigating to the build page (/job/ {name} / {build#} ) in Hudson in your browser? What project type(s) have you seen this in?

          Alan Harder added a comment -

          I see this line in decompose() in hudson.Functions:

          String rest = reqUri.substring(f.getUrl().length());

          I think the "off by one" problem happens here.. so "rest" becomes

          {last-digit}

          /
          instead of just /. Perhaps the "s" in https is causing this? I have a
          non-default port, but plain http, and I don't see this.

          Alan Harder added a comment - I see this line in decompose() in hudson.Functions: String rest = reqUri.substring(f.getUrl().length()); I think the "off by one" problem happens here.. so "rest" becomes {last-digit} / instead of just /. Perhaps the "s" in https is causing this? I have a non-default port, but plain http, and I don't see this.

          Alan Harder added a comment -

          Also please confirm what Hudson version you are using; please make sure to test
          this on 1.268 so I'm not looking for something that is fixed.. thanks.

          Alan Harder added a comment - Also please confirm what Hudson version you are using; please make sure to test this on 1.268 so I'm not looking for something that is fixed.. thanks.

            mindless Alan Harder
            mmastrac mmastrac
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: