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

Absolute URLs in delivery pipeline break reverse proxy setups

    XMLWordPrintable

Details

    Description

      I'm having trouble with the URLs being generated for XMLHttpRequests behind a reverse proxy. The URLs generated have the http scheme instead of https.

      I believe this could be solved by changing the URL to be relative instead of absolute.

          public String getApiBaseUrl() {
              return Jenkins.getInstance().getRootUrlFromRequest() + getViewUrl();
          }
      

      See attached screen caps demonstrating the behavior I'm seeing.

      Attachments

        Issue Links

          Activity

            skwash Josh Hansen created issue -
            patbos Patrik Boström made changes -
            Field Original Value New Value
            Attachment delivery-pipeline-plugin.hpi [ 26480 ]
            patbos Patrik Boström made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            patbos Patrik Boström made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            patbos Patrik Boström made changes -
            Link This issue is related to JENKINS-24168 [ JENKINS-24168 ]
            patbos Patrik Boström made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            patbos Patrik Boström made changes -
            Resolution Fixed [ 1 ]
            Status Reopened [ 4 ] Resolved [ 5 ]
            patbos Patrik Boström made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 156890 ] JNJira + In-Review [ 207911 ]

            People

              patbos Patrik Boström
              skwash Josh Hansen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: