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

REGRESSION: Clicking on the cog icon in blue ocean takes you to an invalid page.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • blueocean-plugin
    • None
    • Clients: OSX Sierra Safari, Windows 10 IE,
      Server: Ubuntu 16, Apache Reverse Proxy 2.4, Java 8
    • 1.0

      Clicking on the cog item adds an additional '/jenkins/' to the path when clicking on the cog item causing a 404 error.

      Incorrect url = https://jenkins.***.***/jenkins/job/********/configure
      Correct url = https://jenkins.***.***/job/********/configure

      Administration and Logout/login buttons go to the correct path without the additional '/jenkins/'

      Edit: this is particularly nasty. regression introduced in this commit: https://github.com/jenkinsci/blueocean-plugin/commit/d4a615534c8f8a5e94affc1a612038be90b109f9 with a refactoring.
      This would never have worked when running on root - it would always fall back to pre-prepending /jenkins, as it didn't detect that the root was set, correctly.

      tfennelly proposed fix: https://github.com/jenkinsci/blueocean-plugin/pull/859 - are you able to look at that, do a beta publish dance and adjust that PR to make it testable? it worked locally when I tried it (changes suggested by josh, but there may be a better way). Basically empty string is "falsey" in javascript, so that would never have worked, ever.

          [JENKINS-42291] REGRESSION: Clicking on the cog icon in blue ocean takes you to an invalid page.

          Yes, it's happened after updating blue ocean plugins up to 1.0.0-b24 version.
          After downgrade all this plugins down to 1.0.0-b23 links become correct again.

          Dmitry Makarov added a comment - Yes, it's happened after updating blue ocean plugins up to 1.0.0-b24 version. After downgrade all this plugins down to 1.0.0-b23 links become correct again.

          Michael Neale added a comment -

          Ugh that is really annoying, this used to work fine. Not sure what changed. I can reproduce this.

          Michael Neale added a comment - Ugh that is really annoying, this used to work fine. Not sure what changed. I can reproduce this.

          Michael Neale added a comment -

          Proposed fix in the description (There may be better options, but need to be tested, as this is tricky to test in all cases)

          Michael Neale added a comment - Proposed fix in the description (There may be better options, but need to be tested, as this is tricky to test in all cases)

            tfennelly Tom FENNELLY
            a1dutch Andrew Holland
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: