• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • disk-usage-plugin
    • None
    • disk-space 0.28; Jenkins 1.609.3

      When trying to access Disk Usage page from Jenkins Dashboard, the plugin inserts port 8080 into the URL. My instance of Jenkins is not running on port 8080, thus I am getting "page can't be displayed" error. Removing port 8080 manually from the URL in the browser fixes the problem.

          [JENKINS-31000] Plugin assumes that port 8080 is used

          Pavel Saab added a comment -

          This issue doesn't happen in version 0.25 but starts with version 0.26

          Pavel Saab added a comment - This issue doesn't happen in version 0.25 but starts with version 0.26

          I am not able to reproduce it. I tried to start this plugin with port 9000. I tried to search in code if there is anywhere hard code with 8080. Please can you send me picture? So I am exactly which link it was? Thank you

          Lucie Votypkova added a comment - I am not able to reproduce it. I tried to start this plugin with port 9000. I tried to search in code if there is anywhere hard code with 8080. Please can you send me picture? So I am exactly which link it was? Thank you

          Grim Reaper added a comment -

          We get this issue as well. Running v0.28 of plugin.

          System configuration>Jenkins URL = http://server.host.net/Jenkins/

          When you mouse over "Disk Usage" link on the left side of the main Jenkins page the address in the status bar is correct, however if you click the link it redirects to http://server.host.net:8080/Jenkins/.

          This is a Jenkins install from the 2.60.3 war file running on Java 1.8 and WildFly. That said we have had this issue on every Jenkins version since 1.651.3 that we have tried. As per the OP's statement we can confirm that 0.25 did not have this issue but 0.26 -> 0.28 does.

          Grim Reaper added a comment - We get this issue as well. Running v0.28 of plugin. System configuration>Jenkins URL = http://server.host.net/Jenkins/ When you mouse over "Disk Usage" link on the left side of the main Jenkins page the address in the status bar is correct, however if you click the link it redirects to http://server.host.net:8080/Jenkins/ . This is a Jenkins install from the 2.60.3 war file running on Java 1.8 and WildFly. That said we have had this issue on every Jenkins version since 1.651.3 that we have tried. As per the OP's statement we can confirm that 0.25 did not have this issue but 0.26 -> 0.28 does.

          Grim Reaper added a comment - - edited

          Update:

          Issue still persists, but I noticed something today that is not part of my OP(see items in red below). The issue is on the redirect after clicking the link. "Lemme espain...no there is too much...lemme sum up"...

          The "Disk Usage" link on the main Jenkins page links to "http://server.hostname.net/jenkins/disk-usage". After clicking this link you get a redirect that happens and it sends you to "http://server.hostname.net:8080/jenkins/plugins/disk-usage" and it should be "http://server.hostname.net/jenkins/plugins/disk-usage" (No ':8080').

          After the redirect if I delete the :8080 part in the address bar the page loads properly.

           

          So I'm not sure if it's the plugin or the main Jenkins code that is doing the "redirect"; but whomever is handling that part is not obeying the "System configuration>Jenkins URL = http://server.host.net/jenkins/" entry and injecting the ":8080" part.

           

          Also not sure if this is only a problem with the Jenkins/disk-usage when deployed to an app server using the Jenkins.war install method.

           

          Would love to see an update on this issue. Perhaps it's resolved in the "Upcoming 0.29 release" that has yet to be actually released!

          Grim Reaper added a comment - - edited Update: Issue still persists, but I noticed something today that is not part of my OP(see items in red below). The issue is on the redirect after clicking the link. "Lemme espain...no there is too much...lemme sum up"... The "Disk Usage" link on the main Jenkins page links to "http://server.hostname.net/jenkins/disk-usage". After clicking this link you get a redirect that happens and it sends you to "http://server.hostname.net :8080 /jenkins/ plugins /disk-usage" and it should be "http://server.hostname.net/jenkins/plugins/disk-usage" ( No ':8080' ). After the redirect if I delete the :8080 part in the address bar the page loads properly.   So I'm not sure if it's the plugin or the main Jenkins code that is doing the "redirect"; but whomever is handling that part is not obeying the "System configuration>Jenkins URL = http://server.host.net/jenkins/ " entry and injecting the ":8080" part.   Also not sure if this is only a problem with the Jenkins/disk-usage when deployed to an app server using the Jenkins.war install method.   Would love to see an update on this issue. Perhaps it's resolved in the "Upcoming 0.29 release" that has yet to be actually released!

            Unassigned Unassigned
            pavelsaab Pavel Saab
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: