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

Context Path Missing from Reload link

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When adding a context path to a Jenkins instance, and the "Reload" links are clicked, 404 errors occur. Hovering over the Reload link reveals the context path is missing from the link.

      For example if the rootURL for our jenkins instance is
      "localhost:8080/JENKINS", the plugin will render the Reload link as
      "localhost:8080/plugin/scm-sync-configuration/reloadAllFilesFromScm"
      instead of
      "localhost:8080/JENKINS/plugin/scm-sync-configuration/reloadAllFilesFromScm"

      Examining the plugins' config.jelly and reload.jelly files indicate the problem may be the rootURL is being referred as "rootUrl" (note the capitalization).

      After changing these jelly files and manually testing the links using various Jenkins versions (with and without context paths), the links rendered successfully using correct context path.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kiana Tennyson
          Path:
          .gitignore
          src/main/resources/hudson/plugins/scm_sync_configuration/ScmSyncConfigurationPlugin/config.jelly
          src/main/resources/hudson/plugins/scm_sync_configuration/reload.jelly
          http://jenkins-ci.org/commit/scm-sync-configuration-plugin/daf45778fa033db4b9d3d0191014b4bf4c82ce92
          Log:
          fix for JENKINS-23036 : using rootURL (not rootUrl) for some jelly files.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kiana Tennyson Path: .gitignore src/main/resources/hudson/plugins/scm_sync_configuration/ScmSyncConfigurationPlugin/config.jelly src/main/resources/hudson/plugins/scm_sync_configuration/reload.jelly http://jenkins-ci.org/commit/scm-sync-configuration-plugin/daf45778fa033db4b9d3d0191014b4bf4c82ce92 Log: fix for JENKINS-23036 : using rootURL (not rootUrl) for some jelly files.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Frédéric Camblor
          Path:
          .gitignore
          src/main/resources/hudson/plugins/scm_sync_configuration/ScmSyncConfigurationPlugin/config.jelly
          src/main/resources/hudson/plugins/scm_sync_configuration/reload.jelly
          http://jenkins-ci.org/commit/scm-sync-configuration-plugin/8d48a90760ab0129157dd5ab8e3bb88bc616efb5
          Log:
          Merge pull request #20 from kiana/master

          fix for JENKINS-23036 : using rootURL (not rootUrl) for some jelly files...

          Compare: https://github.com/jenkinsci/scm-sync-configuration-plugin/compare/c5a6a7e05ab6...8d48a90760ab

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Frédéric Camblor Path: .gitignore src/main/resources/hudson/plugins/scm_sync_configuration/ScmSyncConfigurationPlugin/config.jelly src/main/resources/hudson/plugins/scm_sync_configuration/reload.jelly http://jenkins-ci.org/commit/scm-sync-configuration-plugin/8d48a90760ab0129157dd5ab8e3bb88bc616efb5 Log: Merge pull request #20 from kiana/master fix for JENKINS-23036 : using rootURL (not rootUrl) for some jelly files... Compare: https://github.com/jenkinsci/scm-sync-configuration-plugin/compare/c5a6a7e05ab6...8d48a90760ab

            People

            • Assignee:
              fcamblor Frédéric Camblor
              Reporter:
              kiana kiana tennyson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: