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

Search box in browser toolbar does not work in combination with URL rewriting

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None
    • Platform: All, OS: All

      From

      http://deadlock.netbeans.org/hudson/

      I go to the search box and enter "javadoc-nbms". It works and takes me to

      http://deadlock.netbeans.org/hudson/job/javadoc-nbms/

      as expected.

      If I install the search engine in Firefox (2.0.0.6 on Ubuntu) I get sent to

      http://deadlock.netbeans.org:2080/hudson/search/?q=javadoc-nbms

      which does not work.

      I have Hudson running on port 2080 on the server, but am using lighttpd to
      rewrite URLs so as to expose only port 80 to the outside world. Normally this
      works fine, but it seems that Hudson is exposing its search engine using an
      absolute URL (including host and port information). Is it possible to expose a
      relative URL instead, so that after URL rewriting the Firefox search toolbar
      would get the correct port (80)?

          [JENKINS-781] Search box in browser toolbar does not work in combination with URL rewriting

          I believe relative URL doesn't work inside open-search descriptor.
          I modified code so that it uses the URL you configure in the system config
          screen, and only use the request URL as the fall back.

          Another way to solve the problem would be to use something like AJP instead of
          simply HTTP request forwarding.

          This change is in 1.135.

          Kohsuke Kawaguchi added a comment - I believe relative URL doesn't work inside open-search descriptor. I modified code so that it uses the URL you configure in the system config screen, and only use the request URL as the fall back. Another way to solve the problem would be to use something like AJP instead of simply HTTP request forwarding. This change is in 1.135.

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: